Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CrossTab

Status
Not open for further replies.

rajeshnrh74

Programmer
Jun 19, 2007
9
Gurus,

I've SQL Server 2000 Table like this

Cl: Business: Source: Analyst: Times:
GE -- Analytics -- Peer -- Chayan -- Once
AA -- Collections -- Third -- Remya -- Twice


I want Output like this

Cl: Business: Source: Chayan: Remya:
GE -- Analytics -- Peer -- Once -- Nil
AA -- Collections -- Third -- Nil -- Twice

I seek your precious help

Rajesh N.
 
For your convenience

Create table T1 (
Cl varchar(100),
Business varchar2(100),
Source varchar2(100),
Analyst varchar2(100),
Times varchar(100))

insert into T1 values(
'GE','Analytics','Peer','Chayan','Once')
insert into T1 values(
'AA','Collections','Third','Remya','Twice')


Rajesh N.
 
Search for Cross Tab in this forum there are a lot of questions on Cross Tab queries. Here is a thread that discusses the issue.

thread183-1068258

Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top