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

SQL Displaying of Data Horizontally

Status
Not open for further replies.

ja01

Technical User
Dec 14, 2005
48
0
0
US
Using MS SQL Server 2005, I want to display instances of data horizontally. For example if I choose
select membid, membtype from membership where membid = '0001' I would get
0001 c2 (0001=membid, c2=membtype)
0001 c3 (0001=membid, c3=membtype)

Is there a way to set up an sql statement to display the data to read like this?
0001 c2 c3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top