I am using the below code to update column value in the SQL JOIN statement.
CASE when SUBSTRING(m.x1,1,1) = 1 then \'1, \' else \'\' END + CASE when SUB