If we want to concatenate one column row values into single row we need to write query like this DECLARE @subscribedTag VARCHAR(MAX) ,@id int; SELECT @subscribedTag = COALESCE(@subscribedTag + ‘, ‘, ”) + tagcode FROM TagMaster where id =@id Share via: Facebook X (Twitter) LinkedIn More Abdul Khursheed View All Posts Post navigation Previous Post Implementing Referential Integrity and Cascading Actions in SQLNext PostQuery to concatenate two column values in SQL Server