
Creating a Delimited list from a column of a table
Many times when we normalize our database, we end up storing multi-values attributes as separate rows in table. For eg. Consider we are storing Photos and a set of tags associated with the photos.
Assume the following table structure
Photo_ID Tag
1 Beach
1 Sand
2 Mountain
2 Waterfall
3 Island
3 White Sand
3 Blue waters
Now while retrieving the tags for photos we need only one record per photo with all the tags as comma separated in the output.



