I have an OrdersProducts tables with order_id, product_id, and quantity fields. I’d like to know the most popular products, so how can I sum the quantity field for each product_id separately and then order the sums? Any pointers would be appreciated. I’m using MySQL 5.3, thanks.
I have an OrdersProducts tables with order_id , product_id , and quantity fields. I’d
Share
Try this.