Customer Placing the Largest Number of Orders - LeetCode
Write an SQL query to find the customer_number for the customer who has placed the largest number of orders. The test cases are generated so that exactly one customer will have placed more orders than any other customer. The query result format is in the following example.
- code
select top 1 customer_number from Orders group by customer_number order by count(*) desc