meteorelec
asked on
put a colum of data and insert it into a single field with comma seperators
I have a table called [table_a] and it has a column name [product],
when i run this statement
'SELECT product FROM table_a'
it returns
product
A0023
GG990
HHG176
KKJ1212
what statement would i need to return one record in the below format
A0023,GG990,HHG176,KKJ1212
when i run this statement
'SELECT product FROM table_a'
it returns
product
A0023
GG990
HHG176
KKJ1212
what statement would i need to return one record in the below format
A0023,GG990,HHG176,KKJ1212
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.sqlteam.com/article/using-coalesce-to-build-comma-delimited-string