Use of COALESCE to create comma separated list
Suppose we have following data in Employee table and we need to make a semicolon separated list of EmailIDs to send mail, then we can use COALESCE as shown in below fig.
Suppose we have following data in Employee table and we need to make a semicolon separated list of EmailIDs to send mail, then we can use COALESCE as shown in below fig.

Here I am creating a semicolon(;) separated list. You can use comma(,) in place of semicolon to make comma separated list.
Summary
In this article I expose the use of COALESCE to make comma separated or deli-meter separated list.
Thanks.
I would like to have feedback from my blog readers. Please post your feedback, question, or comments about this article.

bimith veettilPosted Oct 13, 2020, 2:12 AM
Hi i want seperate midile value suppose
Guest UserPosted Aug 1, 2014, 10:27 PM
i say useful example
Satish TiwariPosted Jul 22, 2014, 3:02 AM
Beautiful blog........
Naveen KumarPosted Jul 22, 2014, 1:00 AM
i know its simple but more effective in such kind of situations
Shivom AgarwalPosted Jul 22, 2014, 12:25 AM
nice blog very simple but effective