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.

"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."
Find Each User's Earliest Seven-Day Activity Streak
Find Each User's Earliest Seven-Day Activity Streak Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema...
Measure Customers Ordering from Bottom-Quartile Restaurants
Measure Customers Ordering from Bottom-Quartile Restaurants Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables...
Calculate the Monthly Share of High-Frequency Customers
Calculate the Monthly Share of High-Frequency Customers Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Sc...
Describe How You Use SQL in Data Science Work
How do you use SQL in your day-to-day data-science work? Describe the kinds of problems you solve, the complexity of queries you can own, and the chec...
Find Monthly Top Customers Excluding High-Frequency Users
Find Monthly Top Customers Excluding High-Frequency Users Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. ...
Implement and Evaluate Pin Similarity in Python
You are asked to compare Pin similarity in Python. Begin by clarifying how a Pin is represented and what “similar” should mean. Then assume the interv...
Calculate Monthly Restaurant Sales Growth
Calculate Monthly Restaurant Sales Growth Write one PostgreSQL SELECT statement or CTE query. Do not create, alter, or modify tables. Schema delivery_...
Describe Your Analysis and Visualization Toolkit
Give a recruiter-friendly overview of the data-analysis and visualization tools you use in your work. Explain what each tool helps you accomplish, how...
Analyze a Regression Dataset and Build a Safe File-Processing Utility
Analyze a Regression Dataset and Build a Safe File-Processing Utility You receive a feature matrix X and a continuous target y. After the analysis, im...
Analyze User Ride Activity with SQL
Use the following tables to answer four SQL analysis tasks. `text rides(ride_id, ride_date, ride_rating, user_id) users(user_id, city) ` Constraints &...
Compare Survey Satisfaction for New and Established Users
The interview report preserved the survey tables and the request to compare response levels for new and old users, but it explicitly noted that the in...
Implement a Safe Average Function in Python
Write a Python function average(table) that returns the arithmetic mean of a list of numbers and returns 0 when the list is empty. Explain the functio...
Calculate Daily Survey Response Rates by Country
The interview report preserved the survey tables and the request to calculate response rate, but not the exact grouping or output contract. The follow...
Calculate CTR and ad revenue
This question evaluates proficiency in data manipulation and analytics, specifically metric calculation (CTR) and multi-currency revenue aggregation, ...
Compute Company Suggestion Funnels
This question evaluates a candidate's ability to perform event-level funnel analysis including distinct aggregation, joins to a dimension table, time-...
Analyze member video posting behavior by country
Question You are given two tables describing LinkedIn members and the videos they upload. Write SQL (and optionally Python where noted) to answer the ...
Transform and aggregate messy event data
Using pandas (vectorized; no loops), clean, combine, and aggregate the following to produce country/plan day-level metrics for 2025-08-31. DataFrames ...
Monthly Cohort Retention
This question evaluates practical SQL skills in user retention analysis, specifically the ability to build a monthly cohort retention table from raw a...
Debug and harden trial-assignment Python code
You are given the following simplified Python snippet used to assign users and trigger a 1‑month free trial: """ import random, datetime, requests def...
Write SQL window functions for D7 retention
Assume you have the following tables (timestamps are in UTC). 1) game_sessions - user_id (STRING) - session_start_ts (TIMESTAMP) - country (STRING) Ea...