A
Andy
I have a database where each row is activity for a specific date for a
customer. Each row consists of amongst other things, a unique ID, a customer
ID, an activity date and the outcome of that activity.
I need to create a table that has a row for each customer ID. Then there is
a field for Activity Date (1), Activity Outcome (1), Activity Date (2),
Activity Date (2), Activity Date (3), Activity Date (3) etc...
1,2,3 etc need to be arranged in chronological order. So I would need to
transpose this:
Unique_ID Customer_ID Activity_Date Activity_Outcome
1 85 01/01/2009 10
2 85 01/02/2009 20
3 85 01/03/2009 30
to this
Customer_ID Activity_Date(1) Activity_Outcome(1) Activity_Date(2) Activity_Outcome(2) Activity_Date(3) Activity_Outcome(3)
85 01/01/2009 10 01/02/2009 20 01/03/2009 30
customer. Each row consists of amongst other things, a unique ID, a customer
ID, an activity date and the outcome of that activity.
I need to create a table that has a row for each customer ID. Then there is
a field for Activity Date (1), Activity Outcome (1), Activity Date (2),
Activity Date (2), Activity Date (3), Activity Date (3) etc...
1,2,3 etc need to be arranged in chronological order. So I would need to
transpose this:
Unique_ID Customer_ID Activity_Date Activity_Outcome
1 85 01/01/2009 10
2 85 01/02/2009 20
3 85 01/03/2009 30
to this
Customer_ID Activity_Date(1) Activity_Outcome(1) Activity_Date(2) Activity_Outcome(2) Activity_Date(3) Activity_Outcome(3)
85 01/01/2009 10 01/02/2009 20 01/03/2009 30