Data Manipulation (SQL/Python) Interview Questions
Practice 653 real Data Manipulation (SQL/Python) interview questions for 2026. Covers companies like Meta, Amazon, TikTok, DoorDash, and Capital One. Real questions from actual interviews with detailed solutions — designed for focused interview preparation for data analysts, data scientists, and data engineers who must move fluidly between SQL and Python during live screens and take-home tasks. These questions emphasize practical skills: writing correct, efficient SQL (joins, GROUP BY, window functions, CTEs, NULL handling, and performance-aware predicates) and idiomatic Python/Pandas solutions (vectorized transforms, merges, reshaping, datetime handling, and robust data-cleaning). Interviewers evaluate correctness, edge-case reasoning, runtime and memory tradeoffs, reproducibility, and clear communication of assumptions. Expect timed whiteboard-style queries, pair-programming in a shared editor, and take-home notebooks. To prepare, practice translating SQL ↔ Pandas, explain results aloud, time-box exercises, test edge cases, and review common pitfalls such as NULL semantics, grouping logic, off-by-one errors, and inefficient joins.

"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."
Write SQL and pandas for shopping events
Use the schema and sample data below to answer SQL and pandas tasks. Treat 'today' as 2025-09-01. Schema users(user_id INT, country STRING) pins(pin_i...
Write SQL for Pixel Signal Metrics
You are working on Meta Ads Pixel analytics. Assume all timestamps are stored in UTC, and analyze the last 30 complete calendar days. Tables 1. advert...
Write SQL using HAVING and window functions
Context You work on fraud analytics. Assume the following schema (PostgreSQL-like types): transactions - txn_id BIGINT (PK) - merchant_id BIGINT - use...
Merge overlapping intervals per group in pandas
You are given a pandas DataFrame df containing time intervals for multiple groups. Input df columns: - group_id (string/int): group identifier - start...
Transform DataFrame and compute diff-in-diff
You are given a pandas DataFrame df with the following columns: - unit_id (string): entity identifier (e.g., user, city, driver) - group (string): eit...
Determine Maximum Consecutive Order Days Per User
orders +----+---------+------------+ | id | user_id | order_date | +----+---------+------------+ | 1 | 101 | 2024-01-01 | | 2 | 101 | 2024-0...
Implement a robust Python generator
Given a list of integers, write a Python generator that yields the integers from the list while handling edge cases such as None values, empty input, ...
Design payment-to-invoice matcher with priorities
Design and implement a payment-to-invoice matcher. Inputs: (a) invoices, a list like ["invoice-id-1, 10000, 2022-01-01", "invoice-id-2, 30000, 2022-01...
Write SQL to compute max and min marks
Tables marks | column | type | notes | |---|---|---| | student_id | INT | primary key | | marks | INT | not null | Task Write a SQL query that returns...
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...
Calculate Pirated Usage and Revenue Loss
You are analyzing theme piracy on an e-commerce platform. Assume the analysis window is 2023-01-01 through 2023-12-31, all timestamps are stored in UT...
Analyze Document Collaboration CSVs
You are given two CSV files. document_activity.csv - page_id STRING — document identifier - user_id STRING — user who viewed or worked on the document...
Write SQL for rankings, state, and aggregations
You are given several independent datasets. For each dataset, write the required SQL query (ANSI SQL is fine). Assume dates are in UTC and DATE column...
Analyze document collaboration from CSV logs
You are given two CSV files exported from a document collaboration product. Data 1) doc_access.csv Each row represents a user accessing (viewing/editi...
Explain Python lists, dicts, and concurrency
Explain the differences between Python lists and dictionaries (maps), including common operations and their average time complexity, iteration order g...
Calculate Ultimate Loss by Policy Term
You work with insurance policy-term loss data. For a given policy term, its ultimate loss is defined as the sum of losses from the current term and al...
Fetch and parse JSON from REST API
Question Set up a minimal coding environment from scratch and write runnable code that fetches and processes data from a REST API. You are given an en...
Debug SQL join that drops rows
You’re analyzing Home Improvement retail transactions to understand sales of Mulch during promotions. After joining multiple tables, your final result...
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...
Write SQL to analyze response accuracy and speed
You are given response-level data for an online assessment with sections verbal/design/analytics and verbal subtypes grammar/vocab/tense/other. Using ...