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."
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...
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 ...
Analyze video flags and reviews with SQL
You are designing SQL queries for YouTube Trust & Safety. Use the schema and sample data below. Unless stated otherwise, treat a flag as reviewed if t...
Calculate CTR and ad revenue
This interview included two SQL tasks. Task 1: Compare CTR during peak and non-peak hours You are given three tables: - ads(ad_id BIGINT, advertiser_i...
Write SQL to compute campaign net revenue
Using the schema and sample data below, write SQL to produce, for each campaign_id and segment, the following metrics for August 2025: total_reached, ...
Compute CTR drop with exclusions
Assume today = 2025-09-01. Using ad delivery logs, find advertisers whose CTR in the last 7 days (2025-08-25 to 2025-08-31) dropped by at least 20% re...
Find top advertisers and cost per KPI
You are given three advertising campaign tables. Table: campaign_spend | Column | Type | Description | |---|---:|---| | date | DATE | Calendar date in...
Transform clickstream with pandas sessionization
Given a pandas DataFrame events with columns [user_id:int, ts:str ISO8601 or NaT, url:str, server_log_ts:datetime], build 30-minute inactivity session...
Solve SQL and Python OA tasks
Complete the following two online-assessment tasks. Task A — SQL You are given two tables: customer - customer_id INT - customer_name VARCHAR - purcha...
Write SQL for top drivers and cancellation rates
Question You work on a rideshare / ride-hailing product that connects drivers and riders, with a focus on airport pickups. Using SQL, answer the quest...
Compute article-type diversity per user and histogram
You track article views and article metadata. Tables article_views - user_id INT - article_id INT - view_date DATE articles - article_id INT (PK) - ar...
Find top countries by population per continent
Table world_population - continent VARCHAR - country VARCHAR - population BIGINT Assume each row is a country’s latest population and (continent, coun...
Compute join counts and window ranks
Given the following small schema and data, answer all parts precisely and justify each count/output. Tables and rows: Customers(cust_id INT PRIMARY KE...
Explain handling very large datasets
Describe a project where you ingested and processed a dataset of at least 500 million rows or 1 TB end-to-end. Detail storage formats and partitioning...
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...
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 ...
Find recommended friend pairs by shared listening
Problem (SQL) You work on a music app and want to recommend new friend connections based on listening similarity. Tables Assume the following schemas:...
Analyze shopping funnel with joins and windows
Write SQL (PostgreSQL) to analyze a 4-step shopping funnel: view_product → add_to_cart → checkout_start → purchase. Use the schema and sample data bel...
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...
Write SQL for cuisine median delivery times
Use SQL to answer the following. Assume ANSI SQL with window functions and percentile functions available. Treat “today” as 2025-09-01 (inclusive). Co...