Link to home
Start Free TrialLog in
Avatar of keplan
keplanFlag for Australia

asked on

Derive information from a transaction table and unpivote the information on SQL 2008

I've a table which got the data as below example: I need to organize the data according to the
sample below. I really appreciate if you can help me to write a SQL query to achieve this.


Table:

process_date              transaction_from_date                         transaction_to_date           rate            

DAY4                                         DAY1                           DAY3                100.00
DAY6                                              ---                        --                                       50.00  

Require data format:

DATE         rate
day1         100    
day2         100  
day3         100  
day4
day5
day6          50
-
-
-
-
-
-
day31
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of keplan

ASKER

Thanks for your answer, it is excellent.