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

TRANSPOSE RECORDS IN A TABLE

Status
Not open for further replies.

dvenkat

Programmer
May 13, 2002
11
US
Hi

I HAVE A TABLE AS FOLLOWS-

Country City
USA Austin
USA Houston
USA Dallas
Canada Toronto
Canada Montreal

I want to change the table like this-

Country City
USA Austin, Houston, Dallas
Canada Toronto, Montreal

the table is very huge and so its tough for me to rewrite the table in my desired format. IS THERE A WAY IN ACCESS AS TO HOW I CAN ACCOMPLISH THIS?

Thanks

 
Hi

I think you mean you wish to make a query on your table which gives the result indicated.

You need to look up crosstab query in help.

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top