Menu

Orders by status

Shopee wants a quick breakdown of its orders.

From the orders table, return each status and the number of orders with that status as order_count.

Schema

orders
idINT
statusTEXT
amountNUMERIC(8,2)

Example input

orders
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.