Active Drivers With Zero Completed Trips
Find all active drivers who have not completed any trips in March 2026. Return driver_id, city_id, vehicle_type, and signup_date, sorted by driver_id in ascending order.
4 SQL practice questions in our Uber 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 · 2 Medium · 1 Hard
Independent practice resource. Not affiliated with or endorsed by Uber.
These topics come from the questions in this set. Pick one to open the matching problems.
Find all active drivers who have not completed any trips in March 2026. Return driver_id, city_id, vehicle_type, and signup_date, sorted by driver_id in ascending order.
Calculate the daily count of active drivers and the 7-day rolling average of those counts for each city. A driver is considered active on a day if they completed at least one trip that day. Return trip_date, city_id, daily_active_drivers, and rolling_7d_avg, ordered by city_id and trip_date.
Find the top 3 drivers by earnings per online hour in each city over the last 30 days. A driver must have at least 20 online hours to be included. Earnings are calculated as fare_usd * surge_multiplier for completed trips. Return city_id, driver_id, vehicle_type, earnings_per_hour, and rnk (1-3), ordered by city_id and rnk.
4 Uber problems, each with its own dataset. Click one and you’re in the workspace, free, right in your browser.
Your dataset
driver_id (INTEGER) · signup_date (DATE) · city_id (INTEGER) · vehicle_type (VARCHAR) · is_active (BOOLEAN) · rating (FLOAT)
trip_id (INTEGER) · driver_id (INTEGER) · rider_id (INTEGER) · request_time (TIMESTAMP) · pickup_time (TIMESTAMP) · dropoff_time (TIMESTAMP) · status (VARCHAR) · fare_usd (FLOAT) · surge_multiplier (FLOAT)
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 Uber SQL free188 SQL practice questions. 23 companies. Free access to every problem.