COde:
DECLARE @bb VARCHAR(MAX)
SELECT @bb= COALESCE(@bb+',','')+CONVERT(VARCHAR,RegistrationNumber) FROM dbo.odlStudentTermPromotion WHERE TermSession='2014-1' AND isactive=1
SELECT @bb
DECLARE @bb VARCHAR(MAX)
SELECT @bb= COALESCE(@bb+',','')+CONVERT(VARCHAR,RegistrationNumber) FROM dbo.odlStudentTermPromotion WHERE TermSession='2014-1' AND isactive=1
SELECT @bb
Comments
Post a Comment