Hey Im just wondering if the following is possible
select id, name, (select name from secondTable where companyId = tableOne.id) as concatenatedString..
from tableOne
so what I am looking for the select to do is for each record return in tableOne, to perform a lookup in another table and return all the values for this record id. (The other table is a lookup table so each id might have 1 or more entries). If more than 1 value is returned in the subquery to build up a single string value, with comma delimited.
so i.e return data would look like
1 Microsoft Bill,Gate,Jack
2 Apple Jobs