Restaurants With No Orders
Find all restaurants that have not received any completed orders. Return restaurant_id and restaurant_name, sorted by restaurant_id in ascending order.
3 SQL practice questions in our DoorDash collection, part of our 188-question bank across 23 companies. Write SQL against practice datasets and get checked in your browser. Free, no card or trial.
No account needed to start. Draft SQL stays in this browser; create an account to sync solved history.
1 Easy · 1 Medium · 1 Hard
Independent practice resource. Not affiliated with or endorsed by DoorDash.
These topics come from the questions in this set. Pick one to open the matching problems.
Find all restaurants that have not received any completed orders. Return restaurant_id and restaurant_name, sorted by restaurant_id in ascending order.
Calculate weekly cohort retention by analyzing customer activity. For each signup week, count the total cohort size, customers active in week 1 (first 7 days after signup), customers active in week 2 (days 8-14 after signup), and the retention rate (week 2 active / week 1 active). Only include completed orders. Return signup_week, cohort_size, week1_active, week2_active, and retention_rate, ordered by signup_week.
Calculate daily statistics and rolling 30-day average order value for each restaurant. For each restaurant and day, compute the number of completed orders and the average order value. Then calculate a 30-day rolling average of the daily average values. Return restaurant_id, order_date, daily_order_count, daily_avg_value, and rolling_30d_avg_value, ordered by restaurant_id and order_date.
3 DoorDash problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.
Your dataset
restaurant_id (INTEGER) · restaurant_name (VARCHAR) · cuisine_type (VARCHAR) · city (VARCHAR)
order_id (INTEGER) · customer_id (INTEGER) · restaurant_id (INTEGER) · order_date (DATE) · order_total (DECIMAL) · status (VARCHAR)
Start free, no account needed. When you create one, everything you’ve solved comes with you — solved marks, streaks, and concept ratings on your dashboard.
Practice DoorDash SQL free188 SQL practice questions. 23 companies. Free access to every problem.