Possible Duplicate:
Concatenate column values for rows with the same values (of different columns)
Not sure if i'm asking this properly, but please review below to get a jest of what i'm trying to do here:
SELECT a.ID, (SELECT n.NAME FROM NAMES n WHERE n.ID = a.ID) Names FROM Aliases a
Which should return something like this:
ID NAMES
1 Bob, Sally, Jenny
These are not multiple rows returned, this is one single row returned with multiple values. The key here is to return them in one row, instead of multiple rows. Any suggestions?