Below is my database fields.
Select FilterType,FilterValue from filter;
FilterType FilterValue
Fabric,Coller,Occasion,Sleeve,Fit Cotton,Rounded Neck,,Long Sleeve,Regular Fit
Fabric,Coller,Occasion,Sleeve,Fit Cotton,Square Neck,Formal,Long Sleeve,Slim Fit
Fabric,Coller,Occasion,Sleeve,Fit Linen,Square Neck,Formal,Long Sleeve,Regular Fit
Fabric,Coller,Occasion,Sleeve,Fit ,,,,
Fabric,Coller,Occasion,Sleeve,Fit ,,,,
Fabric,Coller,Occasion,Sleeve,Fit ,Square Neck,,,
I want convert all filter type with its value.
Means i want Output like this:
Fabric = Cotton,Linen
Coller = Rounded Neck,Square Neck
Occasion = Formal
Sleeve = Long Sleeve
Fit = Regular Fit,Slim Fit
So how to solve this