have the following two sample tables
order amount is equal to orderinfo
price*count
in the table, and each order has more than one item.
how can I get the top 10 users with the total amount of orders through the SQL statement?
add: each user may also have multiple orders