learning_grexcel
Active Member
- Joined
- Jan 29, 2011
- Messages
- 319
Hi,
I have a data with around 2,00,000 rows. The data is similar to the following :
item name >> date >> qty purchased
pen >> 1.03.2011 >> 50
pencil >> 02.03.2011 >> 70
pen >> 05.03.2011 >> 80
pencil >> 04.03.2011 >> 50
etc.
Now I want purchase during the month for particular items like the following :
pen >> 01.03. 2011 >> 50
>> 05.03.2011 >> 80
Total for March >> 130
pencil >> 02.03.2011 >> 70
pen >> 04.03.2011 >> 50
Total for March >> 120
Could you please tell me how to use SQL query to get the desired output?
I have a data with around 2,00,000 rows. The data is similar to the following :
item name >> date >> qty purchased
pen >> 1.03.2011 >> 50
pencil >> 02.03.2011 >> 70
pen >> 05.03.2011 >> 80
pencil >> 04.03.2011 >> 50
etc.
Now I want purchase during the month for particular items like the following :
pen >> 01.03. 2011 >> 50
>> 05.03.2011 >> 80
Total for March >> 130
pencil >> 02.03.2011 >> 70
pen >> 04.03.2011 >> 50
Total for March >> 120
Could you please tell me how to use SQL query to get the desired output?