DECLARE @Marks VARCHAR(8000) SELECT @Marks = COALESCE(@Marks + ', ', '') + Marks FROM tableName SELECT @Marks
COALESCE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)