Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Pivoting data

Author  Topic 

vbandlamudi
Starting Member

1 Post

Posted - 2008-08-28 : 02:14:48
please check this out:

my data is like as folows

order_num prdo_grp level
10001 [lux][santoor] 1
10002 [grp][app] 2
20003 [htc][hutch] 3

result should be like as follows[ contains only one record]

order_num submission order1 order2 order3
10001 [lux][santoor] [grp][app] [htc][hutch] null

everytime it should take the order number as level1 order number.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-08-28 : 02:17:52
check out PIVOT operator


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-28 : 03:57:27
where does submission come from?
Go to Top of Page
   

- Advertisement -