I have a table users that lists all users who have entered orders in to the system.
Each order has a order_number and user amongst a ton of other columns.
Each week I am looking to get a list of the total orders that each user has entered in to the system, I guess this will need a subquery. I have looked at grouping and subquery but am really lost.
The idea is to SELECT a count of orders entered that week, entry_date between sysdate and sysdate-5 etc. which I don't have a problem doing, but I don't understand how to then count it per user.
So for e.g. Jane entered 150 orders, Steve entered 450 orders etc.
Can someone point me in the right direction here please?