I know this is possible in PostgresSQL (sp?), MySQL and Red Hat's DB (whatever it is). Is it possible in SQL Server?
I have a query where, based on the grouping, I would like to concatinate the strings. For example, given:
I want to:
giving:
How do I create concatinate? ________________________________________
Nature and Nature's laws lay hid in night
God said "Let Newton be", and all was light
~Alexander Pope~
I have a query where, based on the grouping, I would like to concatinate the strings. For example, given:
Code:
Recipe Ingredient
------- ----------
Soup carrots
Soup water
Soup meat
Stew carrots
Stew water
Stew meat
Stew flour
Pudding pudding
Code:
select recipe, concatinate(ingredient + ', ')
from recipes
group by recipe
Code:
Recipe Ingredient
------- ----------
Soup carrots, water, meat
Stew carrots, water, meat, flour
Pudding pudding,
Nature and Nature's laws lay hid in night
God said "Let Newton be", and all was light
~Alexander Pope~