Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am facing problem in building query or stored procedure related to below issue so can any one help me for building query or SP related to this

Table Name : ABC

RefID Premium Version Service_tax
RF001 18000 V.1 1200
RF001 17000 V.2 1300
RF001 19000 V.3 1500

I want data in below format

Benefits V.1 V.2 V.3
Premium 18000 17000 19000
Service_tax 1200 1300 1500
Posted
Comments
Maciej Los 15-Feb-15 10:15am    
What have you tried till now?

1 solution

First of all, try to do something. Here is quite good explanation of pivot and unpivot queries for Oracle: link[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900