Katkat

practice a little every day, paws crossed ♡

Data Manipulation (SQL/Python) Interview Questions

Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.

9403
Questions
546
Companies
11
Topics
8
Languages

Showing 421–446 of 446 results

  • UberMediumData Scientist
    Compute ETA shift and conversion uplift

    This question evaluates proficiency in SQL and Python for time‑series data manipulation and experimental analysis, covering window functions (7‑day percentile_cont medians), date spines and timezone‑aware timestamp truncation, conversion-rate aggregation, difference‑in‑differences uplift estimation, and CUPED adjustment with cluster‑robust standard errors. It is commonly asked to assess practical data engineering and applied statistics skills in the Data Manipulation (SQL/Python) domain, testing applied implementation and causal inference ability rather than only conceptual understanding.

    Data Manipulation (SQL/Python)Technical Screen
  • UberMediumData Scientist
    Write SQL and Pandas for Uber Trips

    This question evaluates SQL and Pandas data manipulation competencies, including joins, time-based filtering, handling NULLs, aggregations, rate and ratio calculations, and windowed comparisons over grouped city-day data.

    Data Manipulation (SQL/Python)Technical Screen
  • UberMediumData Scientist
    Write SQL/Python for CTR analytics

    This question evaluates proficiency in data manipulation and analytics, covering SQL windowing and deduplication for time‑windowed cohort metrics (48‑hour unique CTR) as well as practical Python model evaluation tasks such as precision‑recall plotting, weighted F1 threshold selection, and precision@top‑k.

    Data Manipulation (SQL/Python)Technical Screen
  • UpstartMediumData Scientist
    Calculate Average Event Value by User ID

    This question evaluates a candidate's skill in group-wise aggregation and data transformation on JSON-like event streams, specifically computing per-user average metrics and producing ranked results.

    Data Manipulation (SQL/Python)Technical Screen
  • UpstartMediumData Scientist
    Calculate User Revenue and Session Duration in Python

    This question evaluates proficiency in data manipulation and time-series event processing in Python, focusing on per-user revenue aggregation and sessionization to compute average session duration.

    Data Manipulation (SQL/Python)Technical Screen
  • VisaMediumSoftware Engineer I
    Query the Top Ten Customers by Recent Spend

    This problem tests proficiency in SQL aggregation, window functions, and joining across normalized transactional tables to perform time-bound analysis.

    Data Manipulation (SQL/Python)Online AssessmentSQLAggregationJoins
  • VoleonEasyData Scientist
    Analyze a Regression Dataset and Build a Safe File-Processing Utility

    Implement an atomic, non-destructive file-cleaning utility for tabular logs and a greedy collinearity filter to screen regression features based on target correlation.

    Data Manipulation (SQL/Python)Technical ScreenPythonPandasFeature Engineering
  • VoleonMediumData Scientist
    Analyze time-zoned events with pandas

    This question evaluates proficiency in data manipulation and analysis with pandas and SQL, covering timezone-aware timestamp handling, event deduplication, cohort and retention metrics, currency parsing and FX conversion, revenue imputation, ARPU calculation, and scalability for high-volume event data.

    Data Manipulation (SQL/Python)Technical Screen
  • VoleonMediumData Scientist
    Load and visualize large CSV robustly

    This question evaluates competency in large-scale data manipulation and preprocessing, including robust file I/O (delimiter and encoding detection), memory-efficient chunked loading, dtype enforcement, deduplication, imputation strategy design, outlier handling, and statistical visualization techniques.

    Data Manipulation (SQL/Python)Technical Screen
  • VoleonMediumData Scientist
    Pre-process Financial Data for Linear Regression Modeling

    This question evaluates data preprocessing and feature engineering skills—handling missing values, winsorizing outliers, standardizing predictors, and assembling X/y datasets using Python/Pandas within the Data Manipulation (SQL/Python) domain.

    Data Manipulation (SQL/Python)Technical Screen
  • WayfairEasyData Scientist
    Clean scores and return top 5 students

    This problem tests your ability to clean tabular data by performing conditional imputation and applying window functions to rank performance metrics.

    Data Manipulation (SQL/Python)Online AssessmentPandasData CleaningImputation
  • WayfairEasyData Scientist
    Find top buyer in earliest 10-year window

    This question tests the ability to filter data by date ranges, group transactional records by user, and use window functions or aggregations to identify a specific record based on criteria.

    Data Manipulation (SQL/Python)Online AssessmentSQLAggregationWindow Functions
  • WayfairEasyData Scientist
    Solve SQL and Python OA tasks

    This question evaluates SQL and pandas data-manipulation skills, including joined aggregations over date windows, handling of missing values with median imputation, and multi-criteria sorting and tie-breaking.

    Data Manipulation (SQL/Python)Online Assessment
  • WaymoMediumData Scientist
    Analyze User Ride Activity with SQL

    Solve four SQL analytics tasks on ride and user tables: inactive users, monthly rides and ratings, low-frequency users by city, and first-versus-third active-month ratings. The walkthrough emphasizes outer joins, date boundaries, aggregation grain, window functions, and weighted averages.

    Data Manipulation (SQL/Python)Online Assessment
  • WaymoMediumData Scientist
    Compute Ride Metrics in SQL

    This question evaluates SQL data manipulation skills, covering joins between normalized tables, timezone-aware date filtering and calendar-month grouping, aggregation and NULL-aware averages, counting distinct and inactive users, and cohort/retention analysis.

    Data Manipulation (SQL/Python)Online Assessment
  • WaymoMediumData Scientist
    Implement a Safe Average Function in Python

    Implement a Python average function that returns zero for an empty list and explain its time and space complexity. Clarify numeric types, missing values, NaN behavior, streaming alternatives, precision concerns, and the tests needed for a reliable data utility.

    Data Manipulation (SQL/Python)Online Assessment
  • WaymoEasyData Scientist
    Merge overlapping intervals per group in pandas

    This problem tests your ability to handle temporal data by merging overlapping time intervals within distinct groups using pandas and custom logic.

    Data Manipulation (SQL/Python)OnsitePandasData ManipulationIntervals
  • WaymoMediumData Scientist
    SQL: Average Ride Rating in Users' First and Third Active Months by City

    Write a PostgreSQL query that compares average ride ratings in each user's first and third active months, grouped by city and averaged over individual rides. Tests ranking distinct active months per user, window functions, NULL ratings and weighting.

    Data Manipulation (SQL/Python)Onsite
  • WaymoMediumData Scientist
    SQL: Users With No Rides in the Most Recent 7-Day Window, Including Non-Riders

    Write a PostgreSQL query that lists users with no rides in the most recent 7-day window, including users who never rode. Tests anchoring a date window to the data, inclusive boundaries, and anti-join logic that keeps users without matching rides.

    Data Manipulation (SQL/Python)Onsite
  • WaymoMediumData Analyst
    Top 5 Most Efficient Vehicle Models

    This problem tests your ability to aggregate data from multiple tables, calculate performance metrics, and handle common SQL pitfalls like division by zero and NULLs.

    Data Manipulation (SQL/Python)Technical ScreenSQLAggregationJoins
  • WeRideMediumData Scientist
    Compute window averages and merge intervals

    Compute window averages and merge intervals evaluates SQL or pandas logic, joins, grouping, window functions, null handling, edge cases, and validation in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

    Data Manipulation (SQL/Python)Technical Screen
  • Wells FargoMediumData Scientist
    Write SQL for rolling default rates

    This question evaluates proficiency with SQL window functions and time-series aggregation, specifically the ability to compute rolling metrics across customer segments by aggregating defaults and accounts over a moving 12-month window.

    Data Manipulation (SQL/Python)Technical Screen
  • WhatnotMediumData Scientist
    Calculate Monthly Customer Retention

    A PostgreSQL interview problem about calculating monthly customer retention from activity data. It tests month-level cohort construction, distinct-user counting, correct denominator selection, and handling customers who return across calendar boundaries.

    Data Manipulation (SQL/Python)Technical Screen
  • WhatnotMediumData Scientist
    Compute a Seven-Day Rolling Average

    A PostgreSQL interview problem about computing a seven-day rolling average from dated observations. Candidates must use window frames carefully, preserve the requested grain, handle incomplete history, and return deterministically ordered results.

    Data Manipulation (SQL/Python)Technical Screen
  • YahooMediumData Scientist
    Calculate Total Spend and Identify Key User Metrics

    This question evaluates a data scientist's proficiency in transactional data manipulation using SQL and Python, focusing on aggregation, ranking, joins, date arithmetic, and numeric rounding to produce user-level and time-series metrics.

    Data Manipulation (SQL/Python)Technical Screen
  • eBayMediumData Analyst
    Explain Joins and Write Coupon SQL

    This problem tests your ability to perform multi-table joins, handle temporal data, and apply conditional aggregation to compute business KPIs like conversion rates and total transaction value.

    Data Manipulation (SQL/Python)HR ScreenSQLJoinsAggregation