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

Select multiple rows into one row.

Status
Not open for further replies.

DDR

Technical User
Aug 22, 2001
54
0
0
US
Hi all, I have a table like the following


Name col1 col2 col3
------------------------------
Name1 A B C
Name1 D E F


And I want a query to select multiple rows with the same name and put them in one row like this


Name col1|1 col2|1 col3|1 col1|2 col2|2 col3|2
-------------------------------------------------------------------
Name1 A B C D E F


is that possible???
 
do a search by "from rows to columns" in this forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top