convert rows to columns in Access

后端 未结 4 1009
深忆病人
深忆病人 2021-01-24 06:21

I have read many question on Stack Overflow related to my problem, but I don\'t think they quite address my problem. Basically I download a XML dataset with lots of data, and in

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 06:33

    Try this...in sql query may be it is your answer

       SELECT NameID , [AA] as AA,[BB] as BB,[CC] as CC,[DD]  as DD     
            FROM        
            (
                SELECT Name,Data,NameID FROM Table1
            )PivotData
    
            PIVOT
            (
                max(Data) for Name in ([AA],[BB],[CC],[DD])     
            ) AS Pivoting
    

提交回复
热议问题