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."
Create Monthly Revenue Report for Each Department
DEPARTMENT_REVENUE +------------+---------+-------+ | Department | Revenue | Month | +------------+---------+-------+ | A | 8000 | Jan |...
Identify SQL Joins and Correct Query Errors
Winner +----+-------+ | ID | Name | +----+-------+ | 1 | Alice | | 2 | Bob | | 3 | Carol | +----+-------+ Loser +----+-------+ | ID | Name | ...
Calculate Engagement Metrics for Info-Stream Content Analysis
info_stream_views +----------+-----------+--------------+----------+------------+ | post_id | viewer_id | relationship | duration | ds | +---...
Calculate Survey Response Rate and Quality Metric in SQL
survey_responses +---------+----------+---------------------+---------------------+-------+ | user_id | survey_id| impression_ts | click_ts ...
Convert Dates to Calendar Quarter Labels in SQL/Python
Transactions +----+-----------+ | id | trans_dt | +----+-----------+ | 1 | 20230115 | | 2 | 20230402 | | 3 | 20230930 | | 4 | 20231201 | +---...
List Departments with Student Counts Including Zero
Students +----+--------+---------+ | id | name | dept_id | +----+--------+---------+ | 1 | Alice | 1 | | 2 | Bob | 2 | | 3 | Caro...
Compute Daily Revenue by Creation Source
active_ads date | ad_id | advertiser_id | creation_source | revenue 2023-09-01 | 1001 | 17 | mobile_app | 150.00 2023-09-01 | 1...
Analyze VR App Usage and Engagement Metrics
vr_usage +---------+------------+---------+------------+----------+ | user_id | date | app_id | session_id | duration | +---------+------------...
Calculate French User Engagement and U.S. Call Duration
call_logs +---------+-----------+------------+---------+----------+ | caller | recipient | ds | call_id | duration | +---------+-----------+-...
Identify Employees with Invalid Department References
EMPLOYEE +-----+-----+--------+ | eid | did | ename | +-----+-----+--------+ | 1 | 10 | Alice | | 2 | 11 | Bob | | 3 | 99 | Carol | +--...
Identify Unique Callers and French Customer Call Percentage
video_calls +---------+-----------+--------------+---------------------+---------------+ | call_id | caller_id | recipient_id | start_ts | ...
Calculate Weekly, Monthly Watch Hours for Paid Users
video_view_logs +---------+----------+----------------+------------+------------+ | user_id | video_id | watched_seconds| watch_date | device_type| +-...
Identify Top Discounts and Monitor Code Submissions
Products +------------+----------+-------+----------+ | product_id | category | price | discount | +------------+----------+-------+----------+ | 101 ...
Compute unique duration by merging intervals
Problem You have an autonomous-driving clip dataset where each row represents a time interval from a driving run. Table: clips | column | type | descr...
Tiktok DS Interview Questions
Scenario: You are provided with two tables: minute_streamed and minute_viewed. The minute_streamed table records each minute of streaming activity, wh...
Write SQL for 30-day activity and D7 retention
You are given two tables. Table: trades - user_id (BIGINT) - trade_time (TIMESTAMP) — timestamp of the trade - volume (NUMERIC) - asset (TEXT) Table: ...
Write SQL for content view metrics by device
Write SQL for content view metrics by device You are a reporting analyst for a news subscription product. You have a fact table of page/content view e...
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...
Find Payroll Bookings in the Latest Active Month by Country
Practice PostgreSQL date logic by finding the latest active payroll-booking month and aggregating amounts by headquarters country. The task tests prec...
Explain Joins and Write Coupon SQL
This question evaluates proficiency in SQL fundamentals—logical execution order of query clauses, join semantics (INNER/LEFT/RIGHT), timezone-aware ti...