In my class were are currently learning the basics of an Access database, and I am having a problem getting it to cooperate. The question is "How many orders per year?"
This is what I've gotten so far:
SELECT COUNT (Orderdate)
FROM Orders
Now obviously that will count all of the order dates, but what I need it to do is group the orders by year and count each group. I would assume that would be:
GROUP BY DATEPART ('YYYY')
However, that does not work. Any suggestions?