Senior+ Data Manipulation (SQL/Python) Interview Questions
Senior+ data interviews push SQL and data manipulation well past basic SELECTs. These questions were reported from senior-level interviews, so they cluster around the harder techniques: multi-level window functions, recursive and layered CTEs, cohort and retention logic, and pandas transformations that mirror real analytics work. At the senior+ level, interviewers also expect you to reason about query performance and explain why one approach beats another. Drill these to get fluent in the patterns that separate senior+ data candidates — writing a running total, a month-over-month change, or a cohort query without reaching for a reference. Most questions come with a worked solution so you can compare your query to a clean one.

"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."
Find Every Project with the Most Employees
The interview report explicitly identified the “Project with Most Employees” SQL exercise. Use the following self-contained PostgreSQL schema: `text e...
Debug and harden trial-assignment Python code
You are given the following simplified Python snippet used to assign users and trigger a 1‑month free trial: """ import random, datetime, requests def...
Analyze Pirated Theme Usage
This question evaluates competency in temporal data manipulation, interval-overlap logic, aggregations and joins to calculate monthly usage metrics an...
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...
Query departments and top earners
This question evaluates proficiency in relational data manipulation, including multi-table joins, grouping and aggregation to identify departments wit...
Query US-based users and most active forums
You are given user and post data for an online forum platform. Tables (schemas) Assume the following tables: users - user_id BIGINT (PK) - home_countr...
Write Queries for Pinterest Engagement Tasks
You are given several data-manipulation tasks based on Pinterest-style product data. Use UTC for all timestamp-to-date conversions unless stated other...
Explain Pandas and SQL Basics
You are interviewing for a Data Engineer internship. Answer the following short data-manipulation questions: 1. In pandas, what is the difference betw...
Write SQL for post-trial conversion cohorts
Using the schema below, write SQL to compute, for users first exposed between 2025‑06‑01 and 2025‑06‑30 (inclusive), the intent‑to‑treat paid conversi...
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...
Compute 30-day power users and 7-day retention
Compute 30-day power users and 7-day retention You are interviewing for a Product/Risk Data Scientist role at a crypto exchange. Assume all timestamps...
Write SQL for influence score and follower growth
You are working on a social product with these tables: Tables / Schemas users - user_id BIGINT (PK) - created_at TIMESTAMP posts - post_id BIGINT (PK)...
Write SQL/Python for ACH fraud analytics
As of today (2025-09-01), use the following schema and tiny samples to answer. Provide SQL for the SQL parts and Python for the Python part. Schema - ...
Design a reproducible data pipeline for modeling
You receive raw clickstream events and a user table. Build a reproducible daily pipeline that outputs user-day features for modeling. It must be idemp...
Compute dasher pay from deliveries
Given a list of delivery events for dashers (e.g., dasherId, pickupTime, dropoffTime, distance, tip, and optional bonuses) and a set of pay rules (e.g...
Compute invalid event percentage by pixel
Context You work on an ads pixel instrumentation platform. Each pixel emits events throughout the day; some events are missing (not observed) and some...
Build a cohort dashboard with Streamlit and SQL
You are given three tables and asked to build a minimal Streamlit app that helps a PM explore weekly cohort retention and ARPU by country. Assume SQL ...
Diagnose zero IE uploads with SQL
On 2025‑09‑01 ('today'), the dashboard shows image uploads for Internet Explorer (IE) dropped to zero. Write SQL to (a) determine if this is a technic...
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...
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: ...