I have a table in HIVE which looks like this
cust_1,month_1, f1,f2,f3
cust_1,month_2, f2,f3,f4
cust_2,month_1, f1,f5,f4
I would like to convert it in the following format
cust_1,month_1, f1
cust_1,month_1, f2
cust_1,month_1, f3
....
How that is possible in HIVE?