Jump to content

Find top items


silvercover

Recommended Posts

Hi,

 

I have a table called order_list with the following fields

 

- order_id
- user_id
- item_id
- count
- date
- order_status

 

every time users place order, this table used to save order details. so how can I write my SQL query to find top 10 items based on the sum of ordered count?

Link to comment
https://forums.phpfreaks.com/topic/247371-find-top-items/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.