Data Manipulation (SQL/Python) Interview Questions
Practice 653 real Data Manipulation (SQL/Python) interview questions for 2026. Covers companies like Meta, Amazon, TikTok, DoorDash, and Capital One. Real questions from actual interviews with detailed solutions — designed for focused interview preparation for data analysts, data scientists, and data engineers who must move fluidly between SQL and Python during live screens and take-home tasks. These questions emphasize practical skills: writing correct, efficient SQL (joins, GROUP BY, window functions, CTEs, NULL handling, and performance-aware predicates) and idiomatic Python/Pandas solutions (vectorized transforms, merges, reshaping, datetime handling, and robust data-cleaning). Interviewers evaluate correctness, edge-case reasoning, runtime and memory tradeoffs, reproducibility, and clear communication of assumptions. Expect timed whiteboard-style queries, pair-programming in a shared editor, and take-home notebooks. To prepare, practice translating SQL ↔ Pandas, explain results aloud, time-box exercises, test edge cases, and review common pitfalls such as NULL semantics, grouping logic, off-by-one errors, and inefficient joins.

"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."
Manipulate data in R with dplyr joins and windows
Using R and dplyr, answer the following using these small tables (dates are ISO strings): transactions(user_id, order_id, order_date, channel, amount)...
Write complex SQL for streaming funnels
You are analyzing a Disney/Hulu product funnel with events captured in a single table. Write ANSI-SQL (Snowflake/BigQuery compatible) to answer the su...
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...
Compute churn and revenue churn in SQL
You receive monthly end-of-month subscription snapshots and must compute August-2025 churn metrics. Schema and sample data: Table: subscription_monthl...
Write windowed retention and ARPU SQL
You are given three tables. Write one SQL script (CTEs allowed) that answers all parts using window functions and joins (no procedural loops): Schema:...
Audit and onboard unfamiliar datasets safely
You inherit unfamiliar hotel search data with sparse documentation. Provide a concrete, ordered checklist to: a) discover tables/columns and verify pr...
Design SQL/Pandas aggregations on retail schema
Using the schema and sample data below, answer both parts. Assume today is 2025-09-01. Use standard SQL (e.g., PostgreSQL) and idiomatic pandas withou...
Write monthly new-vs-returning requests SQL
Given the schema and sample data below, write a single PostgreSQL query (no dynamic SQL) that returns, for every calendar month present in requests, t...
Write complex joins and window functions
You are given a simplified Thumbtack-like marketplace schema in PostgreSQL. Assume UTC timestamps and weeks start on Monday. Treat "today" as 2025-09-...
Compute weighted response rates by job category
You are given a CSV with one row per job posting and the following columns: job_id, job_category, invitations_sent (integer >= 0), provider_responses ...
Label game performance by margin
Given a games DataFrame (or R data.frame) with columns: team_id, opponent_team_id, team_score, opponent_team_score, write code to: (1) Define a functi...
Find 2023 NCAA championship winner
You are given two tables. Schema: team(team_id INT PRIMARY KEY, team_name TEXT); game(game_id INT PRIMARY KEY, team_id INT, opponent_team_id INT, date...
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...
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...
Compute browsing metrics in Python from logs
Given event logs, write idiomatic Pandas to compute segment-level metrics and a funnel. Data schema: events(event_id, ts_utc, guest_id, device in {des...
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...
Write SQL for social feed metrics and ties
You are given the following schema (PostgreSQL) and sample rows. Assume UTC timestamps and that friendships are static over the sample window. users(u...
Write SQL to rank categories by impressions
You are given the following schema and sample data. Today is 2025-09-01. Schema: - users(user_id INT, country_id VARCHAR) - countries(country_id VARCH...
Build panel in SQL; run causal regression
Assume today is 2025-09-01 (UTC). Schema and small samples: users(user_id INT, country STRING, signup_date DATE, platform STRING) Sample: user_id | co...
Implement deduped CTR/RPM aggregator over event stream
Implement a Python function to compute per-day, per-campaign CTR and RPM from an event stream with possible out-of-order and duplicate click events. I...