I have a scenario where my data is retrieved as given below
Product UOM Quantity
Petrol Barrels 13000
Petrol MT 20000
Diesel Barrels 7500
Diesel MT 2500
I need the output in a different output as given below
Product Barrels MT
Petrol 13000 20000
Diesel 7500 2500
Please help me in forming this query, I have been trying this for quite some time without successful result.