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 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...
Compute violation rate and flag precision in SQL
You are analyzing a Trust & Safety product in BigQuery. Assume 'today' is 2025-09-01 (UTC). Define precise metrics and write SQL to compute them, bein...
Compute view prevalence from views and labels
Given the tables below, write SQL to compute view prevalence of violating content. Use “today” = 2025-09-01 and report the last 7 days (2025-08-26 to ...
Find high-value crypto users and top-CTR product
You are given three tables (timezone: UTC). Assume create_date, transaction_time, and event_time are timestamps. Tables users - user_id BIGINT PRIMARY...
Analyze Document Collaboration CSVs
Analyze Document Collaboration CSVs evaluates SQL or pandas logic, joins, grouping, window functions, null handling, edge cases, and validation in a r...
Transform flat keys into nested dictionary
You are given a flat collection of parameter keys like ['layer1.attention.q_proj.weight', 'layer1.attention.k_proj.weight', 'layer1.mlp.fc1.weight', ....
Retrieve Ad Metrics and Rates for Last 7 Days
ads +--------+---------------+----------+ | ad_id | advertiser_id | ad_type | +--------+---------------+----------+ | 101 | 1001 | image...
Analyze Seller Activity and Vehicle Listing Interactions
Analyze Seller Activity and Vehicle Listing Interactions listing_interaction +-----------+-----------+------------+------------+----+ | buyer_id | se...
Count Article Types Viewed
Count Article Types Viewed You are given article view events and article metadata. Table 1: article_views — one row per article view event. | Column |...
Implement simulation-based portfolio optimizer in Python
Implement simulation-based portfolio optimizer in Python Given a pandas DataFrame 'returns' of daily asset returns (index: dates; columns: tickers) an...
Find multi-account buckets and unread rate
You are analyzing a product in which one user can own multiple accounts. Use the following schema: Table: accounts - account_id BIGINT - user_id BIGIN...
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...
Count unconnected posts and reactions
You are analyzing a newly launched feed feature intended to improve engagement by showing more unconnected content. Assume the following tables: - pos...
Implement filters and cursor pagination
Design and implement a transaction query module over a dataset or database where each transaction has startDate, endDate, userId, and amount. Requirem...
Query departments and top earners
This question evaluates proficiency in relational data manipulation, including multi-table joins, grouping and aggregation to identify departments wit...
Count words in a document robustly
Given a text document, return the number of words under a precise definition. First, state the tokenization rules you will use (e.g., treat contractio...
Write SQL to compare social-only vs game-only engagement
You are given two tables capturing Oculus app usage. Define an 'active day' as a UTC date on which a user generates at least one event. Consider only ...
Write left-join queries with tricky filters
Assume 'today' = '2025-09-01'. Do NOT use window functions (e.g., RANK). Use LEFT JOIN, COUNT(DISTINCT), GROUP BY, HAVING as appropriate. Schema: - us...
Select max-discount product per category
You have a catalog of products. For each category, return exactly one product: the one with the largest absolute discount; if multiple products in the...
Analyze NYC taxi trips efficiently over last 7 days
Use today = 2025-09-01. Consider NYC taxi trip data over the last 7 days inclusive (2025-08-26 to 2025-09-01, America/New_York). You receive two datas...