I’m new to SQL (AIX) and I can’t find exactly what I’m looking for. I’d like to find out how many orders are keyed in by each user:
so-order-no user-id
1234 John
2345 John
4567 Bill
7890 Bill
3455 Bill
2144 Fred
A simple COUNT and GROUP BY
Note, I don’t know the table name so I have called generically
ordertable. Substitute with your real table nameGROUP BY
COUNT