I have a table like below :
    ID   TYPE    VALUE
    1    CC 1     X
    1    CC 2     Y
    1    CC 3    NULL
    1    CC 4    NULL
I am using sql PIVOT and STUFF functionality to get the desired result but still not able to do it. Please if anyone can help me.
Desired Result :
ID [CC 1]  [CC 2]  [CC 3]  [CC 4]
1    X       Y      NULL    NULL
 
     
     
     
     
    