declare@a varchar(100)select @a=COALESCE(@a + ',', '') +convert(varchar(3),categoryid) from categoriesselect result=@a
Login to post response