I am learning SQL, and have a sample DB which is made up of customer orders for different products. One query I ran shows the most sold product: SELECT prodID, description, SUM(quantity)FROM orderItem NATURAL JOIN productGROUP BY prodID, descriptionORDER BY SUM(quantity) DESCLIMIT 1;
However what happens if two products are the best selling how do I display them both? (like having the query check it, not just user setting "LIMIT 2")