Hello,
I've a table (Consumption) as follows:
DocDate ItemCode Quantity
01.01.09 A 5
02.01.09 A 6
and so on.. for the whole year
I need results as follow:
ItemCode Jan09Total Feb09Total Mar09Total
The problem is that the quantities should be summed up for the months, which should be in columns and according to the give date criteria, that is, for example from Jan to Mar 09 or Feb to July 09, etc.
How to achieve this using recursive query.
Thanks Rahul