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."
Ensure Correct Numeric Ordering in Visit ID Comparison
visits +----------+---------+-----------+---------------------+ | visit_id | user_id | page | visit_ts | +----------+---------+-------...
Identify Session with Maximum Overlapping Sessions Count
sessions | session_id | start_time | end_time | | 1 | 2023-01-01 09:00:00 | 2023-01-01 10:00:00 | | 2 | 2023-0...
Create Country-Level Spend Report Using Pandas
users +---------+---------+ | user_id | country | +---------+---------+ | 1 | US | | 2 | CA | | 3 | US | +---------+-...
Calculate and Find Average Contacts and Sync Percentage
dw_peers +--------------+---------------+-------------+ | user_id | synced_contact| date_synced | +--------------+---------------+-------------+ ...
Merge and Concatenate Inconsistent Order Files with Pandas
orders_2023 +----------+-------------+--------+ | order_id | customer_id | amount | +----------+-------------+--------+ | 101 | C001 | 120...
Calculate Average Session Duration and Performance Metrics
user_sessions +---------+------------+------+---------------------+---------------------+ | user_id | session_id | app | start_time | end_ti...
Identify Top Three Active Users by Event Date
event_log +------------+---------+-----------+---------------------+ | event_date | user_id | event_type| event_timestamp | +------------+--------...
Rank Ads by Conversion Rate for Top 10 Performers
ad id | advertiser_id | created_at 1 | 101 | 2023-07-01 2 | 102 | 2023-07-05 3 | 101 | 2023-07-10 impression id | a...
Calculate Net Pay Change for Q1 2023 Decreases
EMPLOYEES +-------------+------------+-------+ | employee_id | hire_date | state | +-------------+------------+-------+ | 101 | 2022-04-01 | ...
Generate Daily Unique User Views for Each Shop
shop_views +---------+---------+---------------------+ | user_id | shop_id | view_time | +---------+---------+---------------------+ | 101 ...
Implement pagination and clump grouping
You are given two pre-implemented APIs: ( 1) fetch_activities(page: int) -> { total_pages: int, activities: [ { activity_id: string, type: string, use...
Compute cumulative metrics with full joins
Tables: - daily_metrics(date DATE, content_id STRING, daily_value BIGINT) - cumulative_metrics(date DATE, content_id STRING, cumulative_value BIGINT) ...
Compare WHERE vs HAVING with aggregates
Compare WHERE vs HAVING with aggregates Filter groups based on an aggregate and explain WHERE vs HAVING. Provide a query that returns merchants with c...
Find posts with >60s unconnected viewing time
Context You work on a social app where users can view posts. A view can be from a connected user (viewer is friends/connected with the post author) or...
Write PostgreSQL updates with date filters
Write PostgreSQL statements to: ( 1) update a flight's price and set updated_at correctly; ( 2) upsert a booking record with conflict handling; ( 3) s...
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 French User Engagement and U.S. Call Duration
call_logs +---------+-----------+------------+---------+----------+ | caller | recipient | ds | call_id | duration | +---------+-----------+-...
Analyze VR App Usage and Engagement Metrics
vr_usage +---------+------------+---------+------------+----------+ | user_id | date | app_id | session_id | duration | +---------+------------...
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...