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

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Retrieve Ad Metrics and Rates for Last 7 Days
ads +--------+---------------+----------+ | ad_id | advertiser_id | ad_type | +--------+---------------+----------+ | 101 | 1001 | image...
Analyze Posting Behavior by Cohort and Date
creator_post +------------+---------+------+ | post_date | user_id | post | +------------+---------+------+ | 2023-01-01 | 111 | 1 | | 2023-01...
Measure Late Deliveries and Identify Top Delayed Restaurants
orders +----------+---------+--------------+---------------------+-------------------------+-----------------------+ | order_id | user_id | restaurant...
Compute 3-Day Rolling Revenue Averages with Pandas
sales +------------+-----------+-------+---------+ | date | product_id| units | revenue | +------------+-----------+-------+---------+ | 2023-01...
Write SQL for rolling default rates
Write a SQL query to compute 12‑month rolling default rates by customer segment. Assume table loans(month DATE, segment TEXT, defaults INT, accounts I...
Clean and Aggregate Transactions for Finance Dashboard
transactions id | user_id | amount | timestamp | category 1 | 1001 | 19.99 | 2023-01-01 09:00:00 | grocery 2 | 1001 | 5.50 | 2023...
Explore Subscription Patterns and Status Transitions with SQL/Pandas
subscriptions +-----------------+---------+-------------+ | subscription_id | status | status_date | +-----------------+---------+-------------+ | 10...
Identify Users Interested in Group Video Calls
video_calls caller | recipient | ds | call_id | duration u1 | u2 | 2023-09-01| c100 | 320 u3 | u4 | 2023-09-01| c101 ...
Identify Top Contributors by Recent Post Count
posts +----+---------+---------------------+ | id | user_id | created_at | +----+---------+---------------------+ | 1 | 101 | 2023-09-01...
Analyze DoorDash Orders: High-Frequency Customers, Top Spenders, MoM Sales & Bottom-Percentile Reach
orders +-------------+-------------+---------------+---------------------+ | delivery_id | customer_id | restaurant_id | order_place_time | +------...
Generate Weekly Revenue and Engagement Summary with Pandas
events | user_id | event_time | event_type | platform | revenue | |---------|---------------------|------------|----------|---------| | 101 ...
Analyze Recent Calling Behavior in France Using SQL
CALLS +---------+---------+---------------------+-------------------+----------+ | call_id | user_id | call_start_time | participant_cnt | is_vi...
Device Status without Timestamps
Table: article_views article_id INT author_id INT viewer_id INT view_dt DATE Count authors who have never viewed any of their own articles. On 20...
Compute ad impression conversion rates
You are given two tables for an ads product. Table: ad_impressions | Column | Type | Description | |---|---:|---| | impression_id | STRING | Unique id...
Write SQL for repeat churn
Write a SQL query to measure the performance of a free-month promotion experiment. Assume experiment_users already contains only users who were eligib...
Compute per-coin quarterly amounts and totals
Problem (SQL: Conditional Aggregation) You have two tables: coins - coin_id INT PRIMARY KEY - name VARCHAR transactions - id BIGINT PRIMARY KEY - coin...
Find top-5 most similar rows across datasets
You can solve this in SQL or Python. You are given two datasets with the same feature columns: Tables target_rows (rows you want to match) - target_id...
Compute active ad revenue by creation source
You work on an ads platform and need to report active ad revenue broken down by the ad’s creation source. Tables ads - ad_id BIGINT PK - advertiser_id...
Query and transform marketplace data in SQL/Python
Assume today is 2025-09-01. Use the following schema and sample data to answer the questions with both SQL (preferred) and equivalent Python (pandas) ...
Write SQL for visibility, calls, and cohort activity
You have the following schema and toy data. Assume "today" = 2025-09-01. users(user_id INT, signup_date DATE) Sample: user_id | signup_date -------...