PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches

Quick Overview

This question evaluates SQL and Python data-manipulation skills, specifically aggregation, filtering, window functions, quantile analysis, and the ability to derive user- and merchant-level metrics; it belongs to the Data Manipulation (SQL/Python) domain and emphasizes practical query-writing and data-wrangling competency.

  • Medium
  • DoorDash
  • Data Manipulation (SQL/Python)
  • Data Scientist

Derive Insights from DoorDash Order Database

Company: DoorDash

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

Orders user_id | order_id | merchant_id | order_value | order_date 1 | 1001 | 501 | 45.00 | 2023-07-01 2 | 1002 | 502 | 12.50 | 2023-07-02 1 | 1003 | 501 | 30.00 | 2023-07-05 3 | 1004 | 503 | 85.00 | 2023-07-05 4 | 1005 | 502 | 15.00 | 2023-07-06 ##### Scenario DoorDash order database; need to derive user and merchant insights during SQL interview. ##### Question Write a query to calculate the percentage of high-frequency users (e.g., users whose order count exceeds a defined threshold) over total users. 2. Excluding high-frequency users, compute the monthly total order value. 3. Identify the customer with the single highest order value. 4. Given an existing query that returns bottom-quantile-revenue merchants, modify it per a new prompt from the interviewer (e.g., change quantile or add date filter). ##### Hints Use GROUP BY, COUNT/DISTINCT, window functions or percentile logic; handle date truncation for monthly rollups; join/CTE chain is acceptable.

Quick Answer: This question evaluates SQL and Python data-manipulation skills, specifically aggregation, filtering, window functions, quantile analysis, and the ability to derive user- and merchant-level metrics; it belongs to the Data Manipulation (SQL/Python) domain and emphasizes practical query-writing and data-wrangling competency.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Calculate Order Request Metrics - DoorDash (hard)
  • Analyze Restaurant Customer Metrics - DoorDash (medium)
  • Write SQL for monthly spend and ratios - DoorDash (medium)
  • Write SQL for late-delivery metrics by window - DoorDash (Medium)
  • Compute rolling cold-delivery rates with windows - DoorDash (Medium)