Hi All,
I have the data in temp table in this format
PID TypeId Date
111 00010 2009-07-14
111 00011 2008-08-04
111 00012 2007-08-07
I want the output as
PID TypeID1 Date1 TypeID2 Date2 TypeId3 date3
111 00010 2009-07-14 00011 2008-08-04 00012 2007-08-07
i am using SQL server 2005. how can we query to get the data as above output
Please let me if this is possible with SQL pivot. If not, any ideas..?
Thanks in advance



LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks