The customer success team wants to identify engagement levels. For each customer, count the number of orders they have placed. Return customer_id and order_count, sorted by order_count descending.
Schema
🔑idINT
🔗customer_idINT
order_dateTEXT
statusTEXT
total_amountREAL
postgresql
Run your query to see results
Press Ctrl + Enter to execute