If I have several rows in a SQL db (access front end) with near exact data apart from one field (i know about normalization but Im happy to say this wasn’t my doing!), is there an easy way to select one row with the common data and show all values for the other field together? I can write a function do it programatically but Im wodndering of there’s an easier way?
eg
animal brown dog
animal brown cat
animal brown horse
as
animal brown dog, cat, horse
You can use
STUFF()to get this:see SQL Fiddle with Demo