Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 550 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles. From companies including Meta, Amazon, TikTok, Capital One, DoorDash.

550 Questions 84 Companies08.03.2026
Showing 20 results
Role
Voleon Group logo
Voleon Group
Medium
Data Scientist

Load and visualize large CSV robustly

You're screen-sharing in a HackerRank environment with Python 3, pandas, numpy, seaborn, and matplotlib available. You are given a single file data.cs...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Robinhood logo
Robinhood
Medium
Data Scientist

Write SQL to localize trading drop contributors

Use the schema and samples below. Unless stated, treat a user as active on a day if they attempted any order (any status). Dates are inclusive. Schema...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Netflix logo
Netflix
Medium
Data Scientist

Write SQL for DAU and first-purchase conversion

Today is 2025-09-01. Using the schema and sample data below, write a single ANSI-SQL query that returns one row per day for the last 7 days (2025-08-2...

Data Manipulation (SQL/Python)
22
0
177 people solved
Oct 13, 2025
DoorDash logo
DoorDash
Medium
Data Scientist

Write SQL for cold-complaint diagnostics with LAG/QUALIFY

Using BigQuery/Snowflake-style SQL (CTEs required; use LAG and QUALIFY), answer the tasks below. Assume 'today' is 2025-09-01. Schema and small sample...

Data Manipulation (SQL/Python)
1
0
7 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Write SQL and Pandas for Uber Trips

Assume 'today' = 2025-09-01. You are given the following schema and small ASCII samples. Tables - riders(rider_id, name, signup_date) - drivers(driver...

Data Manipulation (SQL/Python)
0
0
11 people solved
Oct 13, 2025
Snowflake logo
Snowflake
Medium
Data Scientist

Query seven-day conversion with windows and dedupe

Assume all timestamps are UTC. Treat "today" as 2025-09-01. Define "last 7 days" as the inclusive window [2025-08-26 00:00:00, 2025-09-01 23:59:59]. S...

Data Manipulation (SQL/Python)
2
0
40 people solved
Oct 13, 2025
Upstart logo
Upstart
Medium
Data Scientist

Write monthly touches and last-touch SQL

You have two tables tracking marketing touches and downstream conversions. Write SQL to answer the three prompts below. Assume a warehouse like Postgr...

Data Manipulation (SQL/Python)
9
0
68 people solved
Oct 13, 2025
Robinhood logo
Robinhood
Medium
Data Scientist

Write SQL and Python for transaction analytics

You are given user and transaction data. Part A (SQL): Use a join and window functions to answer the prompts below using the following schema and samp...

Data Manipulation (SQL/Python)
10
0
156 people solved
Oct 13, 2025
Tencent logo
Tencent
Medium
Data Scientist

Compute per-player daily cumulative games with windows

Write a SQL query to output, for each player_id and each calendar date present in the data, the cumulative number of games played up to and including ...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Stripe logo
Stripe
Medium
Data Scientist

Design metrics and write SQL for a case

Case: Measure the impact of outreach on subsequent purchases and diagnose anomalies. Define your primary metric and write SQL. Schema and tiny samples...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Write SQL to quantify outage revenue loss

A database outage blocked premium membership registrations from 2025-01-01 to 2025-03-31 (inclusive). Members intend to start on intended_start_date, ...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data ScientistSenior+

Design a reproducible data pipeline for modeling

You receive raw clickstream events and a user table. Build a reproducible daily pipeline that outputs user-day features for modeling. It must be idemp...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Intuit logo
Intuit
Medium
Data Scientist

Design an idempotent churn ETL pipeline

You must build a daily pipeline that produces month-end churn metrics (logo churn, gross revenue churn, net revenue retention) from streaming subscrip...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Compute ETA shift and conversion uplift

Use PostgreSQL (SQL) and brief Python pseudocode. Assume 'today' is 2025-09-01. Schema: - trips(trip_id BIGINT, request_ts TIMESTAMP, city_id INT, rid...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Impute, join, and upsert using SQL and Python

Write both SQL and Python (pandas) to complete the following data-manipulation tasks. Assume today is 2025-09-01 for any time filters. Schema: custome...

Data Manipulation (SQL/Python)
1
0
9 people solved
Oct 13, 2025
Thumbtack logo
Thumbtack
Medium
Data Scientist

Compute weekly 3-week rolling sums in SQL

Using PostgreSQL, write a single query that outputs, for each calendar week in a given range, the sum of amounts in that week and a rolling sum over t...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Write SQL and pandas for shopping events

Use the schema and sample data below to answer SQL and pandas tasks. Treat 'today' as 2025-09-01. Schema users(user_id INT, country STRING) pins(pin_i...

Data Manipulation (SQL/Python)
2
0
8 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Clean, split, merge, and aggregate with pandas

Given two CSVs, use pandas to clean, split strings, merge, and aggregate. drivers.csv driver_id,name,signup_city D1,Jane Doe,SF D2,Mark S,NYC D3,A...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Uber logo
Uber
Medium
Data Scientist

Write SQL for fares and age-band counts

You have two tables. Schema: - drivers(driver_id VARCHAR PRIMARY KEY, name VARCHAR, date_of_birth DATE) - trips(trip_id VARCHAR PRIMARY KEY, driver_id...

Data Manipulation (SQL/Python)
3
1
43 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Write SQL for last-7-day metrics without windows

Assume today is 2025-09-01. Use ANSI SQL only and do not use window functions. You may use subqueries, GROUP BY, HAVING, and JOINs. Schema and small s...

Data Manipulation (SQL/Python)
0
0
10 people solved
Oct 13, 2025

Explore more Data Scientist Data Manipulation (SQL/Python) interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Data Scientist
Data Manipulation (SQL/Python) questions for other roles
Browse all