I have sample data which I need to convert from columns to rows.
Input Data :
NAME CLOTH SHOES PHONE
MOHAN YES YES YES
MAHESH YES NO NO
Output :
CATEGORY MOHAN MAHESH
CLOTH YES YES
SHOES YES NO
PHONE YES NO
I have tried Case Condition but not able to move forward. Can anyone please suggest on this.
Note : For 5.7 and below cross join is not working