AnalystPath

Top Restaurants by Completed Order Count

SQLEasyJunior levelDoorDash~15 min

Problem

**[Asked at DoorDash]**

DoorDash wants to rank its restaurant partners. Find the **top 3 restaurants
by number of completed orders**.

Return `name` and `order_count`, ordered by count descending.

Tables

Example rows — the live problem includes the full dataset.

restaurants
restaurant_idnamecuisine
orders
order_idrestaurant_idstatusorder_date

Expected output

Your answer should return 3 rows with the columns name, order_count.

Starter code (SQL)

SELECT *
FROM restaurants;

Solve this SQL question free

Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.

Solution & explanation

Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.

Sign up free to unlock

Related SQL questions