30 Data Analyst Interview Questions and Answers
· updated

Data analyst interviews test two things at once: whether you can get the right numbers out of the data, and whether you can explain what they mean to someone who doesn’t care about SQL. This guide covers 30 data analyst interview questions across SQL, Excel, statistics, dashboards, business cases and behavioral rounds, with short sample answers you can adapt.
The short answer: most data analyst interview questions fall into six groups:
- SQL: joins, GROUP BY vs HAVING, NULLs, window functions, duplicates.
- Excel: lookups, pivot tables, cleaning messy data.
- Statistics: mean vs median, p-values, correlation vs causation, A/B tests.
- Dashboards and charts: choosing a chart, designing a dashboard people use.
- Business cases: investigating a metric drop, picking metrics for a product.
- Behavioral: past projects, stakeholders, mistakes, explaining findings.
Prepare SQL first, since it’s tested in almost every data analyst interview.
How data analyst interviews work

Most processes look roughly like this:
- Recruiter screen: your background, why this role, salary expectations.
- Technical round: usually live SQL, sometimes Excel or Python, often 45 to 60 minutes.
- Take-home or case study: a dataset and a business question, or a live case where you talk through an approach.
- Final round: the hiring manager and team, mixing behavioral questions with how you’d present findings.
If you’re still deciding which data role fits you, our comparison of data analyst vs data scientist vs data engineer explains how the interviews differ.
SQL questions
For 50 more with worked queries, see our full list of SQL interview questions.
1. What’s the difference between WHERE and HAVING?
WHERE filters rows before they’re grouped. HAVING filters groups after aggregation. To find customers with more than five orders in 2026, you’d use WHERE for the year and HAVING for the count:
SELECT customer_id, COUNT(*) AS orders
FROM orders
WHERE order_date >= '2026-01-01'
GROUP BY customer_id
HAVING COUNT(*) > 5;
2. What’s the difference between an INNER JOIN and a LEFT JOIN?
An INNER JOIN keeps only rows that match in both tables. A LEFT JOIN keeps every row from the left table and fills in NULLs where there’s no match. Use a LEFT JOIN when you need “all customers, including the ones with no orders”.
3. How do NULLs behave in SQL?
NULL means “unknown”, so NULL = NULL isn’t true. You have to use IS NULL or IS NOT NULL. COUNT(*) counts every row, while COUNT(column) skips NULLs, and AVG ignores NULLs too, which can quietly change your averages. Use COALESCE to replace NULLs with a default when that’s the right business rule.
4. How would you find the top three products by revenue in each category?
Use a window function to rank within each category, then filter:
WITH ranked AS (
SELECT category, product, revenue,
DENSE_RANK() OVER (PARTITION BY category ORDER BY revenue DESC) AS rnk
FROM product_sales
)
SELECT category, product, revenue
FROM ranked
WHERE rnk <= 3;
Be ready to explain the difference: ROW_NUMBER gives unique numbers even for ties, RANK skips numbers after a tie (1, 1, 3), and DENSE_RANK doesn’t (1, 1, 2).
5. When would you use a CTE instead of a subquery?
When the query has several steps or reuses the same result. A CTE (the WITH block above) names each step, so the query reads top to bottom and is easier to debug. For a single simple filter, a subquery is fine.
6. How do you find duplicate rows?
Group by the columns that should be unique and keep groups with a count above one:
SELECT email, COUNT(*)
FROM users
GROUP BY email
HAVING COUNT(*) > 1;
Then say what you’d do next: check why the duplicates exist before deleting anything.
Excel questions
7. What’s the difference between VLOOKUP and XLOOKUP?
VLOOKUP only looks to the right of the lookup column and breaks if someone inserts a column. XLOOKUP can look in any direction, returns exact matches by default and lets you set a value for “not found”. INDEX with MATCH does the same job in older versions of Excel.
8. When would you use a pivot table?
To summarise a large table quickly: revenue by region and month, tickets by agent and priority. Mention that you’d use one to sanity-check totals before building anything more permanent.
9. How would you clean a messy dataset in Excel?
Remove duplicates, use TRIM to strip extra spaces, split combined fields with Text to Columns, standardise dates and capitalisation, and use filters or conditional formatting to spot blanks and outliers. Keep the raw data in a separate sheet so you can always go back.
10. What’s the difference between relative and absolute references?
A relative reference like A1 shifts when you copy the formula. An absolute reference like $A$1 stays fixed. You’d use an absolute reference for something like a tax rate in a single cell that every row refers to.
Statistics questions
11. When would you use the median instead of the mean?
When the data is skewed or has outliers. Average order value can be pulled up by a few huge orders, so the median gives a better picture of a typical customer. Salaries and house prices are the classic examples.
12. What is a p-value?
It’s the probability of seeing a result at least as extreme as yours if there were really no effect. A small p-value, often below 0.05, suggests the result is unlikely to be pure chance. It doesn’t tell you how big or important the effect is.
13. What’s the difference between correlation and causation?
Correlation means two things move together. Causation means one actually causes the other. Ice cream sales and sunburns are correlated because both rise in summer, not because ice cream causes sunburn. A controlled experiment like an A/B test is the usual way to get closer to causation.
14. What are Type I and Type II errors?
A Type I error is a false positive: you conclude there’s an effect when there isn’t. A Type II error is a false negative: you miss an effect that’s really there. In A/B testing, a Type I error means shipping a change that doesn’t actually help.
15. How would you design an A/B test?
Define one primary metric and a hypothesis, split users randomly into control and variant, work out the sample size you need before starting, run it for full weeks to cover weekday and weekend behaviour, and don’t stop early just because it looks good. Our guide to A/B testing covers this in more detail.
16. How do you handle outliers?
First find out whether they’re errors or real. A $1 million order from a test account is an error and should be removed. A real enterprise customer is not. Depending on the question, you might report with and without them, use the median, or cap extreme values. Always say what you did.
Data cleaning and process questions
17. Walk me through how you’d approach a new dataset.
Understand what each row represents, check the row count and date range, look for missing values, duplicates and odd values, compare a few totals with a trusted source, then start answering the question. Mention that you’d write down assumptions as you go.
18. How do you deal with missing data?
It depends on why it’s missing and how much. You can drop rows if very few are missing at random, fill them with a sensible default or the median, or flag them as their own category. The important part is to check whether the missing data is biased, for example if only one region failed to report.
19. How do you make sure your numbers are right?
Cross-check totals against another source, like finance reports or the product’s own dashboard, test your query on a small sample you can check by hand, look for sudden jumps that suggest a broken join, and ask someone to review anything important before it goes out.
20. How do you use AI tools in your work, and how do you check their output?
Many teams now use AI assistants to draft SQL or summarise results. A good answer says you use them to speed up drafting, but you always read the query, run it on data you can verify, and check the logic of joins and filters yourself before trusting the result.
Dashboard and visualization questions
21. How do you choose the right chart?
Line charts for trends over time, bar charts for comparing categories, scatter plots for relationships between two numbers, and a single big number for a key metric. Avoid pie charts with more than a few slices and 3D charts entirely.
22. What makes a good dashboard?
It answers a specific question for a specific person, shows the most important metric first, has as few charts as possible, uses consistent colours and labels, and makes clear when the data was last updated.
23. You built a dashboard and nobody uses it. What do you do?
Talk to the people it was built for. Usually it’s answering the wrong question, has too much on it, or isn’t where they already work. Fix it based on what they say, or retire it. Interviewers like this answer because it shows you care about impact, not output.
Business case questions
24. Signups dropped 20% last week. How would you investigate?
- Check the data first. Is tracking broken? Did a definition change?
- Check the calendar. Holidays, seasonality, a campaign that ended?
- Break it down. By channel, device, country, browser and new vs returning visitors, to find where the drop is concentrated.
- Look at the funnel. Did traffic drop, or did the conversion rate drop at a specific step?
- Check for changes. Product releases, pricing changes, outages.
Say what you’d look at first and why. Structure matters more than reaching the “right” cause.
25. What metrics would you track for a food delivery app?
Start with a north-star metric like weekly orders, then supporting metrics: active users, conversion from app open to order, average order value, delivery time, cancellation rate and repeat-order rate. Our guide to product metrics like DAU, MAU, retention and churn covers the common ones.
26. How would you measure the success of a new feature?
Ask what the feature is meant to change, pick one primary metric for that (like checkout conversion), add guardrail metrics that shouldn’t get worse (like refunds or load time), and compare against a control group, ideally with an A/B test.
Behavioral questions
Use the STAR method for these: situation, task, action, result.
27. Walk me through an analysis you’re proud of.
Pick one where your work changed a decision. Explain the business question, your data and tools, what you found, and what happened because of it, with a number if possible: “The finding moved budget from paid social to search, and cost per signup fell 18%.”
28. How do you explain a technical finding to a non-technical person?
Lead with the answer and what it means for them, then give one supporting number, then the detail if they want it. Avoid jargon like “statistically significant” unless you explain it.
29. Tell me about a time your analysis was wrong.
Pick a real, small mistake, say how you caught it, how you fixed it and told people, and what you changed afterwards, like adding a check against finance totals. Owning it calmly is the point.
30. How do you handle several stakeholders asking for things at once?
Ask what decision each request supports and when it’s needed, prioritise by impact and deadline, agree the order with your manager if there’s a conflict, and tell people when they’ll get their answer.
How to prepare in one week
- Days 1 to 3: SQL every day. Joins, GROUP BY, window functions and NULLs. Our list of the best sites to practise SQL has free options.
- Day 4: Excel. Rebuild a pivot table, an XLOOKUP and a quick cleaning workflow.
- Day 5: statistics. Mean vs median, p-values, A/B test design.
- Day 6: cases. Talk through a metric drop and a “which metrics would you track” question out loud.
- Day 7: stories. Prepare three project stories with results, and read the job description again to match them.
If the role mentions Python, add a session on pandas with our Python interview questions. Our guide to the best tools for data analysts covers what’s worth learning beyond that.
Where Tailr fits
Before the interview comes the application, and data analyst listings vary a lot: one wants Power BI and stakeholder reporting, another wants Python and experimentation. Tailr is a Chrome extension that tailors your resume to the job listing you’re viewing, putting the matching tools and projects first without adding anything you haven’t done. It also drafts a cover letter and tracks where you’ve applied.
Try TailrRelated guides
- 50 SQL interview questions and answers
- Python interview questions
- Best tools for data analysts
- Behavioral interview questions
Conclusion
Data analyst interview questions come down to six areas: SQL, Excel, statistics, dashboards, business cases and behavioral questions. Get SQL solid first, revise the statistics behind A/B tests, practise structuring a metric-drop case out loud, and prepare a few project stories with real results. In every answer, show that you can both get the numbers right and explain what they mean.
Frequently asked questions
01What questions are asked in a data analyst interview?
Most data analyst interviews cover SQL (joins, aggregation, window functions, NULLs), Excel (lookups, pivot tables, cleaning), basic statistics (mean vs median, p-values, A/B tests), dashboards and charts, a business case like investigating a drop in a metric, and behavioral questions about past projects and stakeholders.
02How do I prepare for a data analyst interview?
Practise SQL problems daily until joins, GROUP BY and window functions feel easy, revise basic statistics and A/B testing, rebuild a pivot table and an XLOOKUP in Excel, and prepare two or three project stories with clear results. Then practise talking through a metric-drop case out loud.
03Is SQL enough to get a data analyst job?
SQL is the most important skill and is tested in almost every data analyst interview, but it's rarely enough on its own. Most roles also expect Excel or Google Sheets, a BI tool like Power BI or Tableau, basic statistics and the ability to explain findings clearly. Python is a strong plus.
04What are the rounds in a data analyst interview?
A typical process has a recruiter screen, a technical round (usually live SQL, sometimes Excel or Python), a take-home task or case study, and a final round with the hiring manager and team covering behavioral questions and how you communicate. Smaller companies may combine some of these.
05What are data analyst case interview questions like?
They give you a vague business problem, such as 'signups dropped 20% last week' or 'how would you measure this new feature', and watch how you structure it. Clarify the question, check the data is right, break the metric into parts, form hypotheses, and say which data you'd look at first.
06How do I answer data analyst questions as a fresher?
Use projects instead of job experience: an analysis you did on a public dataset, a dashboard you built, or coursework with real data. Explain the question you asked, the tools you used, what you found and what you'd recommend. Interviewers care more about your thinking than the size of the project.