Am trying to reformat a matrix report that shows sales for each customer for a variable no. of months. The result is something like:
Month Jan Feb mar ...
Cust1
cust2
cust3
The query that produces the results consists of a union of two statements.
The problem is that given a range say december 2004 to feb 2005 the header column sorts the months like they were in the same year, like this
Month Jan Feb Dec
Cust1
cust2
cust3
Av tried using ORDER BY in the union'd statement but to no success. Is there anyway to sort the month header?
Month Jan Feb mar ...
Cust1
cust2
cust3
The query that produces the results consists of a union of two statements.
The problem is that given a range say december 2004 to feb 2005 the header column sorts the months like they were in the same year, like this
Month Jan Feb Dec
Cust1
cust2
cust3
Av tried using ORDER BY in the union'd statement but to no success. Is there anyway to sort the month header?