BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sql rows to columns

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Ryan Schoolman
Guest





PostPosted: Wed Dec 03, 2003 1:02 am    Post subject: sql rows to columns Reply with quote



How do you make rows into columns in an sql query? I'm using SQL Server
2000


--
Ryan Schoolman - Programmer & Application Architect
[email]ryan (AT) pclegends (DOT) com[/email]

PC Legends
http://www.pclegends.com

[w] 715.839.6855
[c] 715.379.0878
[h] 715.855.9003


Back to top
David Gagnon
Guest





PostPosted: Mon Dec 08, 2003 7:58 pm    Post subject: Re: sql rows to columns Reply with quote



Are you trying to return a row set as a column set



Name ID Income



Dave 123 60,000

Sally 444 62,000

..

..



as



Dave Sally ... . ....

123 444 . . .

60,000 62,000 . . .



Or are you looking for a list of column names in a table?



Name

Id

Income





"Ryan Schoolman" <ryan (AT) pclegends (DOT) com> wrote

Quote:
How do you make rows into columns in an sql query? I'm using SQL Server
2000


--
Ryan Schoolman - Programmer & Application Architect
[email]ryan (AT) pclegends (DOT) com[/email]

PC Legends
http://www.pclegends.com

[w] 715.839.6855
[c] 715.379.0878
[h] 715.855.9003




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.