In SQL Anywhere, the code looks something like the following:
- Code: Select all
-- Concatenate values from all city row names into single, comma delimited value
SELECT LIST(name, ', ') FROM cities;
I think, in SQL Server it's XML PATH instead of LIST, but I am not quite sure.
Best regards,