All,
Using SSMS v17.2
Long story short I have 15 columns in a table, each record in the table has a different number of columns filled out, the rest are null. I then concatenate the columns with a comma delimiter. Problem is the fields which are null also get concatenated leaving me with trailing commas.
ARNP,ACLS Provider,BLS Provider CPR,,,,,,,,,,,,
COC,CPC,CRC,CPC-1,,,,,,,,,,,
CISSP,CCNA Security,Network +,,,,,,,,,,,,
Leadership (All levels),Education (Grades K-12),,,,,,,,,,,,,,
As you can see the very last character before the trailing commas can be either alpha numeric or special characters. I need help removing these training commas up to the first character that is not a comma such as the below.
ARNP,ACLS Provider,BLS Provider CPR
COC,CPC,CRC,CPC-1
CISSP,CCNA Security,Network +
Leadership (All levels),Education (Grades K-12)
Thank you