I already try Coalease, Stuff, ISNULL, NULLIF but in all i m getting like below
Customer_Number Product
1 NULL,X,Y,NULL
2 NULL,A,B,NULL
3 V, NULL,H,NULL
This is the code i used:
Select Customer_number, ISNULL(IFNULLIF(Product1,' ')+',','')+
ISNULL(IFNULLIF(Product2,' ')+',','')+
ISNULL(IFNULLIF(Product3,' ')+',','')+
ISNULL(IFNULLIF(Product4,' ')+',','')
As Product from productTable