Hello,
I was wondering if someone could help me with this.
I'm trying to write a SQL query that will return the bestselling items from a shop. The items are held in a table called order. What I need to do is query all of the items that have been placed in the order table and then return the top 5 that hold the most rows in that table. Is this possible? Or do I need to do a query and then pull the results after that somehow? Any feedback would be great. Hope this makes sense. Thanks in advance.
Wil