select * from <tablename> where ID ="1000"
select * from <tablename> where ID ="1001"
select distinct id,'ID: '+stuff((
select ', '+ cast(value as varchar(100)) from tmp_tnl where id= a.id FOR XML PATH('')),1,1,'')
from tmp_tnl a
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)