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!

SQL query to get column values horizontally 1

Status
Not open for further replies.

vamsi555

IS-IT--Management
Nov 5, 2007
1
IN
Hi all,
I have a table with the following fields.

a 10
a 20
a 30
a 40
b 10
b 20
c 30.

i want the output as

a 10 20 30 40
b 10 20
c 30

do we have any SQL query to do this.

TIA
vamsi
 

I just answered this in thread220-138869. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top