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

Return Single row for multiple records

Status
Not open for further replies.

revilord

Programmer
Oct 2, 2003
64
I have table of usernames and a second table of options for the user. I want to display one row for each user and all his options.

UserTable
Users Level
Bob 1
Mark 2

Optionstable
Option Level
menu1 1
menu2 1
menu3 1
menu4 2


The result should look like this

Bob, menu1,menu2,menu3
Mark, menu4

and not
Bob menu1
Bob menu2
Bob menu3
Mark menu4

Can anyone let me know what the SQL might look like. thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top