Data Manipulation (SQL/Python) Interview Questions
Practice 674 real Data Manipulation (SQL/Python) interview questions for 2026. Data Manipulation (SQL/Python) interview questions cover the core data work hiring teams use to judge day-one competence: translating product metrics into correct queries, handling edge cases (NULLs, late-arriving events, double-counting), writing efficient joins and window functions, and producing readable, reproducible Pandas code. Real interviews with detailed solutions in this category test both correctness and engineering judgment, not just syntax. Expect these questions across analytics and data-engineering loops at companies that weight practical querying heavily — especially Meta, Amazon, and TikTok. Interviewers evaluate problem scoping, test-case thinking, query performance, and clear communication of assumptions. For interview preparation, focus on hands-on practice: timed live SQL exercises, Pandas data-cleaning drills, and walking through tradeoffs when a naive query will be too slow. Practical habits that help in interviews include writing concise, well-commented queries, stating assumptions up front, and verifying results with small, explicit test cases.

"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."
Justify and harden your analytics and BI stack
List your current analytics tech suite end-to-end (ingestion, storage/warehouse, transformation, orchestration, catalog/lineage, experimentation platf...
Implement robust word counts and min/max
You receive a 50GB UTF-8 text corpus on disk. Implement a Python solution that:\n- Streams the file without loading it fully into memory.\n- Counts ca...
Design Schema for Accurate Subscription State Tracking
subscription_events +----------+---------------------+-----------+-----------+ | user_id | event_ts | event_type| plan_type | +----------+...
Identify false MySQL foreign key statement
MySQL: Which of the following statements is false? A) A column might have a foreign key reference to itself. B) MySQL supports foreign key references ...
Compare list/dict; parse JSON/CSV at scale
Compare Python list and dict precisely: for append/insert/lookup/update/delete, state average and worst-case time complexity, memory implications, and...
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...
Implement vectorized NumPy ops and explain broadcasting
Implement vectorized NumPy code for: (a) computing pairwise cosine similarity between two real-valued matrices X (shape n×d) and Y (shape m×d) without...
Compute each member’s current notification status
Question You are given two tables describing LinkedIn members’ push-notification settings. Compute each member’s current notification status as of 202...
Compute Moderation View Metrics
Question You are working on a content moderation analytics problem. You have two tables. Table 1: content_views (one row per user / post / day) - user...
Compute time-spent percentage by app category
You work on Oculus app engagement analytics. Tables user_activity - user_id (BIGINT) - date (DATE) — day of activity (assume UTC) - app_id (INT) - ses...
Calculate Cohort Retention
You are given two tables: users - user_id BIGINT PRIMARY KEY - signup_ts TIMESTAMP user_events - user_id BIGINT - event_ts TIMESTAMP - event_name VARC...
Detect sessions and gaps using SQL LEAD
Write a single ANSI-SQL query that (a) assigns per-user session_ids when the gap between consecutive events exceeds 30 minutes, (b) computes session_s...
Explain handling very large datasets
Describe a project where you ingested and processed a dataset of at least 500 million rows or 1 TB end-to-end. Detail storage formats and partitioning...
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...
Implement a nested object validator
Implement a helper function validate(object, required_style) that checks whether a possibly nested object matches a provided schema. The object may co...
Top 5 Most Efficient Vehicle Models
This SQL question tests practical data manipulation skills including multi-table aggregation, NULL handling, and conditional filtering across a relati...
Compute ad revenue metrics by geography in SQL
You work on a marketplace app that shows shop ads. You are given the following tables. Assumptions - All timestamps are stored in UTC. - “Revenue” is ...
Compute window averages and merge intervals
Compute window averages and merge intervals You are given two independent pandas tasks. 1. Centered sliding-window average - Input DataFrame df with c...
Compute Heavy-Caller Percentages
You are given two tables that track voice calls and daily active users for a messaging app. Table: call_events - call_id BIGINT — unique call identifi...
Analyze document collaboration patterns
You are given two CSV files and asked to analyze collaboration behavior on documents. File 1: document_activity.csv Each row is a document view event....