The SQL question looks simple: "Write a query to find the top 3 products by revenue for each region." You have 15 minutes. Your hands are sweating. The interviewer is watching you think out loud.
This is the moment that separates candidates who studied from candidates who prepared — and the difference is worth $20,000-$30,000 in starting salary. Data analyst interviews test three things at once: technical skill, analytical reasoning, and communication under pressure. Most candidates only prepare for one.
The questions themselves are predictable. The way interviewers evaluate your answers is not — and understanding the scoring criteria changes everything about how you prepare.
What are the most common data analyst interview questions?
SQL questions (JOINs, window functions, aggregation), statistics questions (A/B testing, correlation vs. causation), Excel questions (pivot tables, VLOOKUP), behavioral questions (explaining findings to non-technical stakeholders, handling conflicting data), and case study questions (going from a business problem to an actionable analysis). SQL is tested in almost every data analyst interview.
How should I prepare for a data analyst interview?
Practice SQL daily for at least two weeks (LeetCode, HackerRank, or StrataScratch). Review statistics fundamentals — hypothesis testing, distributions, and p-values. Prepare three portfolio project walkthroughs using the structure: business problem → approach → analysis → key finding → business impact. Practice explaining a dashboard to a non-technical person in under two minutes.
Do data analyst interviews include coding?
Most data analyst interviews include SQL coding (live or take-home). About 40-50% also test Python (pandas operations, data cleaning). Full software engineering coding (algorithms, data structures) is rare for data analyst roles — that's more common in data engineering and data science interviews.
How long does the data analyst interview process take?
Typically 2-4 weeks from first screen to offer. Startups move fastest (1-2 weeks, 2-3 rounds). Big tech companies take longer (3-5 weeks, 4-5 rounds). Enterprise companies fall in between (2-3 weeks, 3-4 rounds). Take-home assignments add 3-5 days to any timeline.
Walk into a startup interview prepared for big tech, and you'll waste everyone's time. Walk into big tech prepared for a startup, and you'll get destroyed. Format matters.
The interview process varies dramatically depending on where you're applying. A startup might extend an offer after two conversations. A big tech company might put you through five rounds over a month.
| Factor | Startup | Big Tech | Consulting | Enterprise |
|---|---|---|---|---|
| Rounds | 2-3 | 4-5 | 3-4 | 3-4 |
| Timeline | 1-2 weeks | 3-5 weeks | 2-4 weeks | 2-3 weeks |
| SQL depth | Moderate (practical) | Deep (window functions, optimization) | Light (business context) | Moderate (standard queries) |
| Case study | Often (real business problem) | Sometimes (structured) | Always (core of the process) | Rarely |
| Take-home | Common (practical project) | Less common | Sometimes | Rare |
| Emphasis | Can you do the job today? | Depth of fundamentals | Business acumen + analytics | Process fit + technical baseline |
Interview format depends on company type. Startups test practical ability fast. Big tech tests depth across fundamentals. Consulting tests business thinking. Know the format before you prepare — it changes what you prioritize.
The technical assessment is the gate. Let's start with the area that appears in nearly every data analyst interview: SQL.
SQL appears in nearly every data analyst interview — and the gap between passing and failing is smaller than most people think. One missed edge case, one sloppy NULL handling, and you're out.
SQL is the universal data analyst skill. Every company with a database needs someone who can query it. The questions below cover the most tested patterns, from foundational to advanced.
"Write a query to find the second-highest salary in each department."
This tests window functions — the skill that separates junior SQL from production SQL.
SELECT department, employee_name, salary
FROM (
SELECT
department,
employee_name,
salary,
DENSE_RANK() OVER (PARTITION BY department ORDER BY salary DESC) as rank
FROM employees
) ranked
WHERE rank = 2;
"Given an orders table and a customers table, find customers who placed orders in January but NOT in February."
This tests your ability to combine JOINs with conditional logic.
SELECT DISTINCT c.customer_id, c.customer_name
FROM customers c
JOIN orders o ON c.customer_id = o.customer_id
WHERE EXTRACT(MONTH FROM o.order_date) = 1
AND EXTRACT(YEAR FROM o.order_date) = 2026
AND c.customer_id NOT IN (
SELECT customer_id
FROM orders
WHERE EXTRACT(MONTH FROM order_date) = 2
AND EXTRACT(YEAR FROM order_date) = 2026
);
order_date and customer_id, and consider rewriting the NOT IN as a LEFT JOIN with a NULL check for better performance on large tables."Calculate the 7-day rolling average of daily revenue."
Window functions with frames — a common real-world pattern for trend analysis.
SELECT
order_date,
daily_revenue,
AVG(daily_revenue) OVER (
ORDER BY order_date
ROWS BETWEEN 6 PRECEDING AND CURRENT ROW
) as rolling_7_day_avg
FROM (
SELECT
DATE(order_date) as order_date,
SUM(amount) as daily_revenue
FROM orders
GROUP BY DATE(order_date)
) daily;
"Find the month-over-month revenue growth rate."
LAG function — essential for any time-series analysis.
WITH monthly_revenue AS (
SELECT
DATE_TRUNC('month', order_date) as month,
SUM(amount) as revenue
FROM orders
GROUP BY DATE_TRUNC('month', order_date)
)
SELECT
month,
revenue,
LAG(revenue) OVER (ORDER BY month) as prev_month_revenue,
ROUND(
(revenue - LAG(revenue) OVER (ORDER BY month)) * 100.0
/ LAG(revenue) OVER (ORDER BY month), 2
) as growth_rate_pct
FROM monthly_revenue
ORDER BY month;
SQL interviews test window functions (RANK, LAG, rolling aggregates), JOINs with conditional logic, and your ability to handle NULLs and edge cases. Write clean, readable SQL with CTEs — not nested subqueries five levels deep.
SQL gets you through the technical gate. But most data analyst roles require more than just querying databases.
Most candidates over-prepare for SQL and under-prepare for Excel. Then they freeze when asked to find duplicates in a 50,000-row dataset during a live screenshare.
"How would you find duplicate values in a dataset of 50,000 rows?"
Multiple approaches — the answer reveals your Excel depth:
- COUNTIF method: Add a helper column with
=COUNTIF(A:A, A2). Any value > 1 is a duplicate. Sort by the helper column to group them. - Conditional formatting: Select the range → Conditional Formatting → Highlight Cell Rules → Duplicate Values. Quick visual identification.
- Remove Duplicates tool: Data tab → Remove Duplicates. But this destroys data — always work on a copy.
"When would you use INDEX-MATCH instead of VLOOKUP?"
VLOOKUP only searches left to right — the lookup column must be the leftmost column. INDEX-MATCH works in any direction and is more flexible:
- VLOOKUP:
=VLOOKUP(lookup_value, table_array, col_index, FALSE)— simple, but breaks if columns are rearranged. - INDEX-MATCH:
=INDEX(return_range, MATCH(lookup_value, lookup_range, 0))— more robust, handles any column arrangement, and performs better on large datasets.
Excel interviews test practical fluency — pivot tables, VLOOKUP/INDEX-MATCH, and the ability to work with messy data under time constraints. The best answers show you understand when to use each tool and why, not just how.
Excel proves you can work in the tool stakeholders actually use. But the next category tests something harder to fake: whether you understand what the data actually means.
This is where candidates with bootcamp certificates get separated from candidates who actually think like analysts. The questions sound simple. The wrong answers cost offers.
"What is the difference between correlation and causation?"
Correlation means two variables move together. Causation means one variable directly causes the other to change. Ice cream sales and drowning deaths are correlated (both increase in summer) but ice cream doesn't cause drowning — temperature is the confounding variable.
"You run an A/B test and get a p-value of 0.03. What does this mean?"
A p-value of 0.03 means there's a 3% probability of observing results this extreme (or more extreme) if the null hypothesis were true — that is, if there were actually no difference between the two groups.
"Revenue is up 15% month-over-month. What questions would you ask before reporting this to the executive team?"
This is the question that separates analysts from query-runners:
- Is the increase driven by a single outlier (one large order) or broad-based growth?
- Did anything change externally — a seasonal pattern, a marketing campaign, a pricing change?
- Is the comparison period representative? (Was last month unusually low?)
- Are we looking at the same customer cohort, or did we add new accounts?
- Is the 15% statistically significant given normal revenue variance?
Statistics interviews test judgment, not formulas. The best answers demonstrate that you think critically about data — questioning whether results are real, meaningful, and actionable before reporting them as facts.
Understanding statistics is one thing. Applying it under pressure — with a vague prompt and a ticking clock — is where the real test begins.
The case study is the closest thing to doing the actual job during an interview. It's also where the highest-scoring candidates on technical rounds suddenly fall apart.
The Framework for Any Case Study
Every data analyst case study follows the same underlying structure, regardless of the specific question:
Clarify the Question
Before touching data, ask: What decision will this analysis inform? What does success look like? Who is the audience for the results?
Define Your Approach
State your plan before executing. "I'll start by exploring the data for completeness, then segment by [dimension], calculate [metric], and look for [pattern]." This shows structured thinking.
Execute and Document
Write clean, commented code. Handle edge cases (NULLs, duplicates, outliers). Narrate your analysis — explain what you're doing and why at each step.
Deliver a Recommendation
End with a clear, actionable recommendation — not just a chart. "Based on this analysis, I recommend X because Y, which would result in Z." The recommendation is the deliverable, not the SQL query.
Jumping straight into code without asking clarifying questions. The interviewer gave you a vague prompt on purpose — they want to see if you'll seek clarity or make assumptions silently. Always ask at least two clarifying questions before writing a single query.
Case studies test your analytical process, not just your technical skills. Clarify the question, state your approach, execute cleanly, and end with a business recommendation — not a chart.
You've survived the technical rounds. Now comes the part that decides whether you're a culture fit — and whether you can communicate what you found.
Technical skills get you to the final round. Behavioral answers determine who gets the offer — and most data analysts treat this section as an afterthought.
Behavioral questions appear in every data analyst interview. The answers that stand out use the STAR format with data-specific details.
Example Behavioral Questions
Strong answer structure: Describe the original direction the team was heading → explain the analysis you ran → show how the data contradicted the assumption → describe the new decision and its impact.
This question tests intellectual honesty. The best answers acknowledge the mistake openly, explain what caused it (data quality issue, flawed assumption, missing context), and describe the process change you implemented to prevent it from happening again.
The answer interviewers want: "Start with the conclusion, not the methodology. A VP doesn't care about your SQL query — they care about whether revenue is growing and what to do about it. Lead with the insight, show one clean visual to support it, and save the technical details for the appendix."
Behavioral interviews test how you think about data in a business context — not just how you write queries. Use the STAR format, include specific tools and numbers, and always connect your analysis to a business outcome.
Ready to put it all together? Here's the two-week prep plan that covers every interview dimension.
Two weeks of focused preparation is all that separates "not quite ready" from "confident and composed." Here's the exact plan.
- 01Data analyst interviews test five areas: SQL (always), Excel, statistics, Python (sometimes), and business communication (always)
- 02SQL is the most-tested skill — practice window functions, CTEs, and JOINs with edge cases daily
- 03Statistics questions test judgment, not formulas — can you tell when a result is real vs. noise?
- 04Case studies test your analytical process — clarify the question, state your approach, and end with a business recommendation
- 05Behavioral answers need the STAR format with specific tools, numbers, and business outcomes
- 06Interview format varies by company type — know whether you're prepping for a startup (fast, practical) or big tech (deep, structured)
How hard are data analyst interviews?
Data analyst interviews are moderate difficulty compared to other tech roles. The SQL and statistics questions are challenging but learnable with 2-4 weeks of focused practice. They're significantly less difficult than data science interviews (no ML model building) or software engineering interviews (no algorithm design). The hardest part for most candidates is the case study — translating a vague business question into a structured analysis under time pressure.
Do I need to know Python for a data analyst interview?
It depends on the role and company. About 40-50% of data analyst interviews include Python questions, typically focused on pandas operations (filtering, grouping, merging) and basic data cleaning. Entry-level roles at non-tech companies may skip Python entirely. Senior roles and positions at tech companies almost always include it. Check the job description — if Python is listed as 'required,' prepare for it.
What SQL topics should I study for a data analyst interview?
Focus on these areas in priority order: JOINs (INNER, LEFT, RIGHT, FULL), aggregation (GROUP BY, HAVING, COUNT, SUM, AVG), window functions (ROW_NUMBER, RANK, DENSE_RANK, LAG, LEAD, rolling aggregates), CTEs (Common Table Expressions for readable complex queries), subqueries, and NULL handling (COALESCE, IS NULL). Window functions and CTEs are the most tested advanced topics.
How long should I study before a data analyst interview?
Two to four weeks of focused preparation is the sweet spot. Spend 1-2 hours daily on SQL practice, review statistics fundamentals in the first week, prepare portfolio walkthroughs and behavioral answers in week two, and do a full mock case study in the final days. If you're a career changer with no analytics background, allow 4-6 weeks.
What's the best way to practice SQL for interviews?
Use platforms with real interview questions: StrataScratch (curated by company), LeetCode (SQL section), and HackerRank (SQL challenges). Practice on a real database, not just reading solutions — the muscle memory of writing queries matters. Aim for 10-15 problems per week, focusing on window functions, CTEs, and multi-table JOINs.
Should I practice data analyst interviews with AI tools?
Yes — with a specific approach. Use ChatGPT or Claude to generate practice case studies ('Give me a data analyst case study about e-commerce customer churn'). Use them to check your SQL queries for correctness. But don't rely on AI during actual interviews or take-homes — interviewers can tell when answers are AI-generated, and the goal is building real analytical muscle.
Prepared by Careery Team
Researching Job Market & Building AI Tools for careerists · since December 2020
- 01SQL for Data Analytics: Perform Fast and Efficient Data Analysis with the Power of SQL (4th Edition) — Jun Shan, Matt Goldwasser, Upom Malik, Benjamin Johnston (2025)
- 02Naked Statistics: Stripping the Dread from the Data — Charles Wheelan (2013)
- 03Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter (3rd Edition) — Wes McKinney (2022)
- 04Glassdoor Interview Reviews — Data Analyst — Glassdoor (2025)