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.
Author |
Topic |
rajeshnrh74
Starting Member
5 Posts |
Posted - 2007-06-20 : 07:00:32
|
Gurus,I've SQL Server 2000 Table like thisCl: Business: Source: Analyst: Times:GE -- Analytics -- Peer -- Chayan -- OnceAA -- Collections -- Third -- Remya -- TwiceI want Output like thisCl: Business: Source: Chayan: Remya:GE -- Analytics -- Peer -- Once -- NilAA -- Collections -- Third -- Nil -- Twice I seek your precious helpRajesh N. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-06-20 : 07:05:24
|
search from CROSS TAB or PIVOT in this site. There are lots of thread on this issue KH |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
Koji Matsumura
Posting Yak Master
141 Posts |
Posted - 2007-06-20 : 21:22:19
|
If number of Analysts is known:SELECT CI, Business, Source,Chayan = CASE WHEN Analyst = 'Chayan' THEN Times END,Remya = CASE WHEN Analyst = 'Remya' THEN Times ENDFROM YourTable |
 |
|
|
|
|