M
mccloud
I have a query that sums qty sold by item and by class within a date range.
I want to create a second query that sums the date by month and year. I've
try formatting the date but no luck. My gaol is to get the data in a format
that I can filter on month and year.
Here is the current SQL query.
SELECT DISTINCTROW db
ELINHST_SQL.item_no, dbo_ARCUSFIL_SQL.cus_type_cd,
db
ELINHST_SQL.prod_cat, Avg(db
ELINHST_SQL.unit_cost) AS AvgOfunit_cost,
Sum(db
ELINHST_SQL.qty_to_ship) AS SumOfqty_to_ship
FROM db
ELINHST_SQL INNER JOIN dbo_ARCUSFIL_SQL ON db
ELINHST_SQL.cus_no
= dbo_ARCUSFIL_SQL.cus_no
WHERE (((db
ELINHST_SQL.billed_dt) Between [Enter Start Date:] And [Enter
end Date:] Or (db
ELINHST_SQL.billed_dt) Is Null))
GROUP BY db
ELINHST_SQL.item_no, dbo_ARCUSFIL_SQL.cus_type_cd,
db
ELINHST_SQL.prod_cat, db
ELINHST_SQL.ord_type
HAVING (((db
ELINHST_SQL.ord_type)="O"));
I want to create a second query that sums the date by month and year. I've
try formatting the date but no luck. My gaol is to get the data in a format
that I can filter on month and year.
Here is the current SQL query.
SELECT DISTINCTROW db
db
Sum(db
FROM db
= dbo_ARCUSFIL_SQL.cus_no
WHERE (((db
end Date:] Or (db
GROUP BY db
db
HAVING (((db