Data Analyst Interview Questions & Answers: 40+ Questions for 2026

Share to save for later

Feb 17, 2026

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.

Quick Answers (TL;DR)

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.

Careery Logo
Brought to you by Careery
This article was researched and written by the Careery team — that helps land higher-paying jobs faster than ever! Learn more about Careery

How Data Analyst Interviews Work in 2026

Share to save for later

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.

3-4
Average number of interview rounds
Glassdoor interview data, 2024-2025
2-4 weeks
Average time from first screen to offer
Indeed Hiring Lab, 2025
~60%
Of interviews include a live SQL assessment
StrataScratch analysis, 2025
FactorStartupBig TechConsultingEnterprise
Rounds2-34-53-43-4
Timeline1-2 weeks3-5 weeks2-4 weeks2-3 weeks
SQL depthModerate (practical)Deep (window functions, optimization)Light (business context)Moderate (standard queries)
Case studyOften (real business problem)Sometimes (structured)Always (core of the process)Rarely
Take-homeCommon (practical project)Less commonSometimesRare
EmphasisCan you do the job today?Depth of fundamentalsBusiness acumen + analyticsProcess fit + technical baseline
Key Takeaway

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 Questions

Share to save for later

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.

What interviewers are really evaluating: Can you write production-quality queries that handle real-world messiness — NULLs, duplicates, edge cases — not just textbook JOINs?

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;
Why DENSE_RANK over ROW_NUMBER: If two employees tie for highest salary, DENSE_RANK assigns both rank 1 and the next person gets rank 2. ROW_NUMBER would arbitrarily break the tie. Interviewers notice which function you choose — it signals whether you think about edge cases.

"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
  );
The interviewer follow-up you should expect: "What if the orders table has 100M rows? How would you optimize this?" Mention indexing on 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;
Key Takeaway

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.

Excel & Spreadsheet Questions

Share to save for later

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.

What interviewers are really evaluating: Can you work fast and accurately under time pressure with the tool most non-technical stakeholders actually use?

"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.
What the interviewer wants to hear: That you'd start with COUNTIF to identify and understand the duplicates before removing anything. Deleting duplicates without understanding why they exist is a common analyst mistake.

"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.
Key Takeaway

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.

Statistics & Analytics Questions

Share to save for later

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 interviewers are really evaluating: Do you understand WHY you're doing the analysis, not just HOW to run it? Can you catch misleading results?

"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.

The data analyst answer (not just the textbook one): "In practice, I look for three things before suggesting causation: a plausible mechanism (does it make logical sense?), temporal precedence (did the cause come before the effect?), and controlled comparison (can we rule out confounders through A/B testing or statistical controls?)."

"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.

What interviewers want to hear beyond the definition: "A p-value below 0.05 suggests statistical significance, but I'd also look at effect size (is the difference practically meaningful, not just statistically detectable?), sample size (was it large enough?), and whether we corrected for multiple comparisons if we tested several metrics simultaneously."

"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?
Key Takeaway

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.

Case Studies & Take-Home Assignments

Share to save for later

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.

What interviewers are really evaluating: Can you go from a vague business question to a clear, actionable analysis — and communicate the findings to someone who doesn't know SQL?

The Framework for Any Case Study

Every data analyst case study follows the same underlying structure, regardless of the specific question:

Step 01

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?

Step 02

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.

Step 03

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.

Step 04

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.

The #1 Case Study Mistake

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.

Key Takeaway

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.

Behavioral Questions for Data Analysts

Share to save for later

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.

STAR Answer Template for Data Analysts

Example Behavioral Questions

"Tell me about a time your analysis changed a business decision."

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.

"Describe a time when your data was wrong or misleading."

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.

"How do you explain technical findings to non-technical stakeholders?"

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."

Key Takeaway

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.

Complete Data Analyst Job Search Toolkit
Prep beyond the interview: How to Become a Data Analyst (the full career guide), Data Analyst Resume Guide (get past ATS first), and Data Analyst Skills (the complete skills stack).

Data Analyst Interview Prep Checklist

Share to save for later

Two weeks of focused preparation is all that separates "not quite ready" from "confident and composed." Here's the exact plan.

Two-Week Data Analyst Interview Prep Plan
0/10
The Bottom Line
  1. 01Data analyst interviews test five areas: SQL (always), Excel, statistics, Python (sometimes), and business communication (always)
  2. 02SQL is the most-tested skill — practice window functions, CTEs, and JOINs with edge cases daily
  3. 03Statistics questions test judgment, not formulas — can you tell when a result is real vs. noise?
  4. 04Case studies test your analytical process — clarify the question, state your approach, and end with a business recommendation
  5. 05Behavioral answers need the STAR format with specific tools, numbers, and business outcomes
  6. 06Interview format varies by company type — know whether you're prepping for a startup (fast, practical) or big tech (deep, structured)
FAQ

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.

Editorial Policy →
Bogdan Serebryakov

Researching Job Market & Building AI Tools for careerists · since December 2020