Hi,
I have a table which contains records of at least 4 years. I want to sum up the Quantity Sold for the month of July only from 2009 to 2013 based on year.
The fields of the table are as follows:
1. sino c(8)
2. invdate d
3. ItemCode c(10)
4. quantity n(10,3)
5. rate n(10,2)
The field (invdate) contains the records from 2009 to 2013 and I want the total like;
2009 = 12,000
2010 = 13,500
2011 = 14,000
2012 = 13,000
2013 = 14,500
How can I do so by using Select-Sql .. group by
Thanks
Saif
I have a table which contains records of at least 4 years. I want to sum up the Quantity Sold for the month of July only from 2009 to 2013 based on year.
The fields of the table are as follows:
1. sino c(8)
2. invdate d
3. ItemCode c(10)
4. quantity n(10,3)
5. rate n(10,2)
The field (invdate) contains the records from 2009 to 2013 and I want the total like;
2009 = 12,000
2010 = 13,500
2011 = 14,000
2012 = 13,000
2013 = 14,500
How can I do so by using Select-Sql .. group by
Thanks
Saif