Hi,
I have a query returning amounts per outlets, per dates (7 dates):
outlet Amount date
1001 12 21/02/05
1001 13 22/02/05
1001 5 23/02/05
1001 0 24/02/05
1001 0 25/02/05
1001 0 26/02/05
1001 0 28/02/05
1002 4 21/02/05
(...)
Now, I woul like to display this result like this:
outlet Amount_date_1 Amount_d_2 Amount_d_3 (...) Amount_d_7
1001 12 13 5 0
1002 4 (...)
Can I do that with a SELECT without using a table ?
Thanks in advance
I have a query returning amounts per outlets, per dates (7 dates):
outlet Amount date
1001 12 21/02/05
1001 13 22/02/05
1001 5 23/02/05
1001 0 24/02/05
1001 0 25/02/05
1001 0 26/02/05
1001 0 28/02/05
1002 4 21/02/05
(...)
Now, I woul like to display this result like this:
outlet Amount_date_1 Amount_d_2 Amount_d_3 (...) Amount_d_7
1001 12 13 5 0
1002 4 (...)
Can I do that with a SELECT without using a table ?
Thanks in advance