I am trying to find Relative information from a table and return those results (along with other unrelated results) in one row as part of a larger query.
I already t
I think you need something like this (SQL Server):
SELECT stuff((select ',' +Relation FROM tblNextOfKin a WHERE ID ='xxx' AND Address ='yyy' ORDER BY Relation FOR XML path('')),1,1,'') AS res;