keplan
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER