do you mean this?
select some_columns,
stuff((select ',' + field from table2
where table1.link = link
and whereclause ='whatsoever'
for xml path('')),1,1,'')
from table1 t1
where condition ='whatsoever'
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/