N
NuBie via AccessMonster.com
I know this is simple but the query is evading me.
here's the deal:
i want to get the total monthly items: sum(ItemNo),
total monthy amount: sum(ItemAmt), comulative item
from certain date<?>, commulative amount from certain
date<?>. My problem is i dont know how to get the
commulative amount from january to current month.
Here's what i've got so far:
SELECT PC, ACTTIVITY, SUM(ITEMNO) as "MONTHLYTOTALITEM" ,SUM(ITEMAMT) AS
"MONTHLYTOTALAMOUNT", <totalitemfromjantocurrent>,
<totalamountromjantocurrent>
FROM MSD
WHERE FORMAT(CYDATE,"MMM") = "FEB"
GROUP BY PC, ACTIVITY
Table Design
PC
Activity
ItemNo
ItemAmt
CyDate
Report Layout
PC Activity
MonthItemTotal MonthDollarTotal Jan-CurrenMonthTotal Jan-
CurrenMonthDollar
TIA
here's the deal:
i want to get the total monthly items: sum(ItemNo),
total monthy amount: sum(ItemAmt), comulative item
from certain date<?>, commulative amount from certain
date<?>. My problem is i dont know how to get the
commulative amount from january to current month.
Here's what i've got so far:
SELECT PC, ACTTIVITY, SUM(ITEMNO) as "MONTHLYTOTALITEM" ,SUM(ITEMAMT) AS
"MONTHLYTOTALAMOUNT", <totalitemfromjantocurrent>,
<totalamountromjantocurrent>
FROM MSD
WHERE FORMAT(CYDATE,"MMM") = "FEB"
GROUP BY PC, ACTIVITY
Table Design
PC
Activity
ItemNo
ItemAmt
CyDate
Report Layout
PC Activity
MonthItemTotal MonthDollarTotal Jan-CurrenMonthTotal Jan-
CurrenMonthDollar
TIA