Following is the table:
I am trying to get comma separated values where ColC is not Null
Output:
(Sql,My),(Dev,Prod)
I am using sql server 2012
tried COALESCE
but failed. Please help.
Here the create and insert script:
create table T_MyIssue(ColA Varchar(50), ColB Varchar(50), ColC Varchar(50))
Insert Into T_MyIssue(ColA,ColB,ColC)
values('Sql','My','DB'),
('Server','MS',Null),
('Dev','Prod','Mongo')