OldSlowDog
Programmer
Hello,
I have a table storing daily sales of our four stores. I need to create a sales report showing only sales on the last day of every month for each store going back as far as we can.
I tried MAX(day(SalesDate)) and it is not working.
Select Max(day(SalesDate), StoreLoc, SalesAmt
FROM Sales
Group by StoreLoc, SalesDate
Order by StoreLoc, SalesDate
Please help.
I have a table storing daily sales of our four stores. I need to create a sales report showing only sales on the last day of every month for each store going back as far as we can.
I tried MAX(day(SalesDate)) and it is not working.
Select Max(day(SalesDate), StoreLoc, SalesAmt
FROM Sales
Group by StoreLoc, SalesDate
Order by StoreLoc, SalesDate
Please help.