SQL Server: How can I SELECT FROM TABLE TO Other Format

Posted by RedsDevils on Stack Overflow See other posts from Stack Overflow or by RedsDevils
Published on 2010-03-23T16:04:49Z Indexed on 2010/03/24 5:43 UTC
Read the original article Hit count: 348

Filed under:
|

I have Table A. How can I select from Table A to get Table B Format.

    Table A

    Employee Name Effective Date FieldType     FieldValue
    Maung Mya           1/1/2005 Title         Project Engineer
    Maung Mya           1/1/2005 Department    IT Department
    Maung Mya           1/1/2007 Title         Assist Project Manager
    Kyaw Kyaw           1/1/2006 Title         Software Engineer
    Kyaw Kyaw           1/1/2006 Department    IT Department

    Table B

    Effective Date Employee Name Title                  Department
    1/1/2007       Maung Mya     Assist Project Manager IT Department
    1/1/2006       Kyaw Kyaw     Software Engineer      IT Department

Anyone please suggest me. Thanks in advance.

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about select