Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
SQL and Experiment Case Rounds
00:00
5 left

SQL and Experiment Case Rounds

MediumSQL · PostgreSQL

Problem

Tell me about your approach to solving a multi-round Uber case that included SQL, advanced SQL, a case study, and a product success analysis.

For the SQL portion, use the supplied Uber trips and cities tables to compare product performance during June 2026.

Output

  1. One row per qualifying city and product.
  2. Columns: city_name, product_type, total_requests, completed_trips, completion_rate, average_completed_fare, and completed_trip_rank.
  3. Include only city-product combinations with at least two requests, rank products within each city by completed trips descending, and order by city_name, completed_trip_rank, then product_type.

Schema

trips
ColumnTypeDescription
trip_idPKINTUnique trip identifier
city_idINTCity where the trip was requested
product_typeVARCHAR(30)Uber mobility product requested
requested_atTIMESTAMPTimestamp when the trip was requested
statusVARCHAR(20)Trip outcome
fare_usdNUMERIC(10,2)Trip fare in US dollars
cities
ColumnTypeDescription
city_idPKINTUnique city identifier
city_nameVARCHAR(60)City display name
country_codeVARCHAR(2)Two-letter country code
Tablestripscities
Interviewer

Your question is SQL and Experiment Case Rounds. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.