Answers for "coalesce comma separated in sql server"

SQL
0

coalesce for comma separated in sql server

DECLARE @List VARCHAR(8000)

SELECT @List = COALESCE(@List + ',', '') + CAST(OfferID AS VARCHAR)
FROM   Emp
WHERE  EmpID = 23

SELECT @List
Posted by: Guest on May-04-2020

Code answers related to "coalesce comma separated in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language