declare @result varchar(500) set @result = '' select @result = @result + ModuleValue + ', ' from TableX where ModuleId = @ModuleId
select * from [Table] where id IN (select id from employee where salary>1000)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)