SQL + Data Manipulation (SQL/Python) Interview Questions
Practice the exact questions companies are asking right now.

"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 to compute signup and retention lift
You are analyzing an A/B test for a marketing campaign that offers a free 1‑month trial. Assume all timestamps are in UTC. Tables experiment_assignmen...
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 ad revenue metrics by geography in SQL
You work on a marketplace app that shows shop ads. You are given the following tables. Assumptions - All timestamps are stored in UTC. - “Revenue” is ...
Solve window-function SQL without joins
You must use only window functions (no JOINs). CTEs are allowed. Given the schemas and tiny samples below, write SQL for each sub-question and explain...
Architect cloud data ingestion patterns
Propose a cloud data ingestion and serving pattern for streaming and batch on your preferred cloud (AWS/Azure/GCP). Choose between CDC, event sourcing...
Implement a robust Python generator
Given a list of integers, write a Python generator that yields the integers from the list while handling edge cases such as None values, empty input, ...
Find the Highest-Paid Employee in Each Department
The interview report explicitly identified the “Department Highest Salary” SQL exercise. Use the following self-contained PostgreSQL schema: `text dep...
Write SQL for seller and category metrics
This question evaluates proficiency in SQL data manipulation—principally joins, aggregations, grouping, filtering, date arithmetic, and safe handling ...
Merge CSVs and build revenue pivot with pandas
You receive four CSVs and must replicate an Excel VLOOKUP + PivotTable workflow using Python/pandas. CSV samples: customers.csv customer_id,signup_dat...
Identify country with highest sunny-day probability
Write SQL to find the country with the highest probability that a day is sunny. Use the schema and sample data below. Rules: consider a day sunny for ...
Process real-time enter/exit events and actives
You receive a real-time stream of events with schema: user_id (str), channel (str), event_type ("enter"|"exit"), ts (UTC ISO timestamp). A user can ‘e...
Discuss Python mutability, copying, and GIL
In Python, explain the differences between mutable and immutable objects and illustrate how they affect function arguments and container behavior. Des...
Set up a Python interview environment
You can use AI coding tools. Prepare a clean laptop for a Python-based onsite and explain your steps: ( 1) Install pyenv and set up a project-specific...
Posts and Replies Engagement
Posts and Replies Engagement A content platform stores user-generated posts and the replies that those posts receive. You need to answer two questions...
Handle repeated churn in SQL
This question evaluates proficiency in time-based data manipulation and analytics, including handling repeated churn and resubscription, interval logi...
Determine Maximum Consecutive Order Days Per User
Determine Maximum Consecutive Order Days Per User orders +----+---------+------------+ | id | user_id | order_date | +----+---------+------------+ | ...
Compute churn with re-subscriptions
This question evaluates proficiency in event-time data manipulation, temporal aggregation, and subscription-state logic for computing conversion and r...
Design Schema for Accurate Subscription State Tracking
subscription_events +----------+---------------------+-----------+-----------+ | user_id | event_ts | event_type| plan_type | +----------+...
Tackle Python tasks under time pressure
In a 15-minute coding round, implement a small Python function or class to solve a well-scoped problem within about 5 minutes of coding. 1) State 1–2 ...
Review a geospatial Python module
You receive a Python module that processes geospatial datasets (CSV/GeoJSON) to compute distances, cluster nearby points, and write summaries. Perform...