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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pivot 1

Status
Not open for further replies.

JazzMaan

Programmer
Jun 15, 2004
57
US
i have data as:
select count(ny), count(dc), count(sd) from table

35, 23, 22

i wish to have it as:

25,
23,
22.

Can some one help me.
 
Select count(ny) from table
UNION ALL
Select count(dc) from table
UNION ALL
Select count(sd) from table

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top