Data Scientist Data Manipulation (SQL/Python) Interview Questions
Practice 550 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles. From companies including Meta, Amazon, TikTok, Capital One, DoorDash.

"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."
Calculate Second-Degree Followers for Each YouTuber
following +----------+----------+ | YouTuber | follower | +----------+----------+ | A | B | | A | C | | B | D ...
Analyze Retention Metrics Using SQL and Python
transactions +----------+--------+------------+---------+-----------+ | user_id | txn_id | txn_date | amount | is_fraud | +----------+--------+--...
Forecast Next Year's Revenue Using YoY% Analysis
ad_revenue +------------+---------+ | date | revenue | +------------+---------+ | 2023-01-01 | 1000 | | 2023-01-02 | 1200 | | 2024-01-01 |...
Create OHLC Aggregates from Tick Data in Python
price_stream +-----------+-------+ | timestamp | price | +-----------+-------+ | 0 | 3 | | 1 | 2 | | 2 | 4 | | 3 ...
Compute Total Spent in 2023 Excluding Refunds
transactions +----------------+---------+-------------+--------+------------------+ | transaction_id | user_id | merchant_id | amount | transaction_da...
Explore Titanic Dataset: Survival Rates, Age, and Correlations
titanic_passengers +--------------+--------+--------+-----+----------+ | passenger_id | pclass | sex | age | survived | +--------------+--------+--...
Compute Effective Reads with SQL and Python Streaming
post_read_events +----------+---------+-----------+---------+--------------------+---------------------+---------------------+ | event_id | user_id | ...
Compare Spark RDDs, DataFrames, and SQL Performance Gains
SparkJobs +---------+---------+---------------------+----------+ | job_id | user_id | submit_time | status | +---------+---------+---------...
Analyze Order Spending Patterns Across Cities Using SQL
Orders order_id | user_id | order_date | city | order_value 1 | 101 | 2023-01-03 | LA | 23.50 2 | 102 | 2023-01-04 | NY | 45.00 3 | 101 | 2023-01-10 |...
Analyze Cross-Country Call Data for Recent Trends
Users +---------+-------------+----------+ | user_id | signup_date | country | +---------+-------------+----------+ | 1 | 2021-01-04 | US ...
Retrieve Ad Metrics and Rates for Last 7 Days
ads +--------+---------------+----------+ | ad_id | advertiser_id | ad_type | +--------+---------------+----------+ | 101 | 1001 | image...
Calculate Ad Performance with Click-Through and Conversion Rates
impressions +---------+---------+---------------------+-----------+ | user_id | ad_id | event_time | platform | +---------+---------+-----...
Compare Spark RDDs, DataFrames, and Spark SQL Benefits
spark_jobs +---------+---------------------+-------+-----------+---------+ | job_id | submit_time | user | memory_gb | status | +---------+...
Calculate Conversion Rate from Ad Clicks to Page Visits
user_events | user_id | event_time | event_type | ad_id | |---------|----------------------|------------|-------| | 1 | 2023-01-01 10:...
Analyze Social Media Engagement with SQL Queries
info_stream_views +----------+---------+-----------+-------------------------+-----------------------+------------+ | view_id | post_id | viewer_id |...
Query Active Loans by Borrower ID in SQL
loans +---------+------------+----------+-----------+---------------+ | loan_id | borrower_id| amount | status | payment_date | +---------+-----...
Calculate Shop Visibility Ranking in Search Results
shop_impressions +------------+---------+----------+--------+ | date | shop_id | position | clicks | +------------+---------+----------+--------...
Analyze User Engagement and Spammer Read-Rate in SQL
messages +------------+------------+-------------+--------------+-----------+ | sender_id | receiver_id| message_id | sent_date | read_date | +--...
Identify Duplicate Posts by User and Date
posts +---------+---------+---------------------+---------------+ | post_id | user_id | created_at | content | +---------+---------+---...
Calculate Average Session Duration and Performance Metrics
user_sessions +---------+------------+------+---------------------+---------------------+ | user_id | session_id | app | start_time | end_ti...