Interview guide

Data Analyst Interview Questions and Sample Answers

For new and experienced data analysts preparing for SQL, statistics, case and stakeholder questions. Each question explains what the interviewer is looking for, with tips and sample answers you can adapt.

14 questions · Updated 24 November 2026

Data analyst interviews check whether you can get from a vague business question to an answer people can trust. That means writing correct SQL, knowing enough statistics to avoid misleading conclusions, and explaining results to people who will never see your query.

Expect a mix: SQL and spreadsheet questions, a statistics conversation, a case where a number has moved and you have to work out why, and questions about working with stakeholders. The sample answers use [placeholders] for your own experience, so swap in real datasets, tools and results.

If you’re moving into analytics from another field, any work where you used data to make a decision counts. Lead with that, and be clear about what you did yourself.

How the interview usually goes

  • Recruiter screen: your background, the tools you use day to day, why analytics and why this company.
  • SQL round: live queries in a shared editor or on paper, often joins, aggregations and window functions on a small sample schema. Some companies use a timed online test instead.
  • Case study or take-home: a dataset or business scenario, such as a metric that dropped or a feature that launched, which you analyse and then present.
  • Statistics and product sense: averages and distributions, A/B tests, and how you would measure the success of a feature.
  • Hiring manager or stakeholder round: how you scope requests, communicate findings and handle pushback.

General and stakeholder questions

Tell me about yourself.

What they’re checking: They want a short summary of your analytics experience, the tools you use and the kind of questions you answer, linked to this role.

  • Mention the business area you support, not just your tools.
  • Include one piece of analysis and the decision it informed.
  • Keep it under two minutes. If you want a starting point, the tell me about yourself tool can help you structure a draft.
Sample answer

I’m a data analyst with [X years] of experience, currently at [Company], where I support the [team — for example, marketing or operations] team. Day to day I work in SQL and [Excel, a BI tool or Python], building reports and answering questions like [an example question you answer]. One piece of work I’m proud of is [a project], where I found that [an insight], which led the team to [a decision] and [result, with your real metric]. Before this I [earlier role or degree], which taught me [a relevant strength — for example, how the business side thinks about numbers]. I’m interested in this role because [a specific reason], especially the chance to work on [a data or problem area from the job description].

Walk me through an analysis you did from start to finish.

What they’re checking: They want to see your whole process: framing the question, getting and checking the data, analysing it, and turning the result into a recommendation.

  • Start with the business question and who asked it, not the tool you used.
  • Mention a data quality issue you found and how you handled it; real analyses nearly always have one.
  • Finish with the decision that was made, even if the answer was “no change needed”.
Sample answer

[Stakeholder] asked why [metric — for example, repeat orders] had flattened in [region or period]. First I agreed what we meant by [the metric], because [two teams were counting it differently]. I pulled [data sources] with SQL and checked row counts and date ranges against [the source system], which surfaced [a data issue — for example, duplicate customer records] that I fixed before going further. Then I segmented by [channel, cohort or product category] and found the change was concentrated in [segment]. I shared a one-page summary with one chart and a recommendation to [action]. The team [what they did], and [the result, or what you tracked afterwards].

Tell me about a time a stakeholder didn’t like what the data showed.

What they’re checking: Analysts often deliver unwelcome news. They want to see that you stay accurate under pressure while keeping the relationship constructive.

  • Show that you re-checked your own work first; sometimes the stakeholder has spotted a real problem.
  • Agree on definitions and time periods before debating what the numbers mean.
  • Adjust the framing, never the facts.
Sample answer

[Stakeholder] expected [campaign or initiative] to have improved [metric], but my analysis showed [no clear change or a decline]. Before we met, I re-checked the logic and asked a colleague to review the query, so I was confident in the numbers. In the meeting I started with what we agreed on, the definitions and time period, then walked through the result with one simple chart. They raised [their objection — for example, a seasonal effect], which was fair, so I added [a year-on-year comparison] and the conclusion held. I suggested [a constructive next step — for example, a small test of a revised version]. They weren’t pleased with the result, but they [the outcome], and they came to me directly for the next [review].

SQL and data cleaning

Many SQL rounds are live. Talk through the logic before you type: what one row represents in each table, what your join will do to the row count, and where NULLs could cause surprises.

Explain the different types of joins.

What they’re checking: Joins are where many SQL mistakes happen. They want to see that you understand what each join does to the rows, including duplicates and NULLs.

  • Explain with a concrete pair of tables; customers and orders works well.
  • Point out that joining on a key that isn’t unique multiplies rows, a common cause of inflated totals.
  • Know how a LEFT JOIN quietly becomes an inner join: a WHERE condition on a right-hand column, such as WHERE o.status = 'paid', drops the unmatched rows. Put that condition in the ON clause instead.
Sample answer

Take a customers table and an orders table. An INNER JOIN returns only matching pairs, so customers without orders disappear. A LEFT JOIN keeps every customer, and where there’s no order, the order columns come back as NULL; filtering for a NULL order ID is how I’d find customers who have never ordered. A RIGHT JOIN is the mirror image, and most people rewrite it as a LEFT JOIN for readability. A FULL OUTER JOIN keeps unmatched rows from both sides, which helps when reconciling two sources. A CROSS JOIN pairs every row with every other row, so I only use it deliberately, for example to build a grid of every date and product. Whatever the join, I check the key: if it isn’t unique on one side, rows multiply and sums inflate.

What’s the difference between GROUP BY and a window function?

What they’re checking: This separates analysts who can only summarise from those who can rank, compare periods and calculate running totals without losing detail.

  • The core idea: GROUP BY collapses rows into one per group; a window function keeps every row and adds a calculated column.
  • Have uses ready: ROW_NUMBER for the latest record per customer, SUM() OVER for running totals, LAG to compare with the previous period.
  • Know how ties work: ROW_NUMBER gives 1, 2, 3; RANK gives tied rows the same number and skips the next (1, 1, 3); DENSE_RANK doesn’t skip (1, 1, 2).
Sample answer

GROUP BY collapses rows. If I group orders by customer and sum the amount, I get one row per customer and lose the individual orders. A window function calculates across a set of related rows but keeps every row. So SUM(amount) OVER (PARTITION BY customer_id) puts each customer’s total next to each of their orders, which makes it easy to work out each order’s share. Adding ORDER BY inside the OVER clause turns it into a running total. I use ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) to get the latest order per customer, keeping row 1, and LAG to compare this month with last month. My rule of thumb: one row per group, GROUP BY; group context on every row, a window function.

How do you handle NULL values?

What they’re checking: NULLs silently change results in counts, averages, filters and joins. Interviewers check that you know where they cause trouble.

  • NULL means missing or unknown, not zero or an empty string. Comparisons with NULL return unknown, so use IS NULL rather than = NULL.
  • COUNT(column) skips NULLs, while COUNT(*) counts every row.
  • Watch NOT IN: if the subquery returns even one NULL, the query returns no rows. NOT EXISTS avoids the problem.
  • Find out why values are missing before filling them in; the reason decides the fix.
Sample answer

First I find out what a NULL means in that column, because that decides how to treat it. A NULL discount might genuinely mean no discount; a NULL delivery date might mean the order hasn’t shipped yet; a NULL age is simply unknown. In SQL, NULL isn’t equal to anything, not even another NULL, so I filter with IS NULL or IS NOT NULL. Aggregates like SUM and AVG skip NULLs, so an average over a half-empty column only describes the rows that have values, and I’d report how many were missing. Where a default makes sense, I use COALESCE, for example COALESCE(discount, 0). Where it doesn’t, I leave the NULLs in place, exclude those rows, or flag them, and say so in the write-up.

How would you find duplicate records in a table?

What they’re checking: Duplicates are one of the most common data problems. They want a correct query and a sensible definition of what counts as a duplicate.

  • Ask what makes two rows duplicates: the same ID, the same email, or the same combination of fields?
  • To remove extras, number rows with ROW_NUMBER() partitioned by the duplicate key and keep only row 1.
  • Standardise values before comparing, such as trimming spaces and lower-casing emails, or near-duplicates slip through.
Sample answer

I’d first agree what makes two rows duplicates, say the same email address. To find them, I’d group by email and keep groups with HAVING COUNT(*) > 1, which shows which emails repeat and how often. To see the full rows or remove the extras, I’d use ROW_NUMBER() OVER (PARTITION BY email ORDER BY created_at), so the earliest record gets 1 and anything higher is a duplicate. Before any of that, I’d standardise the column by trimming spaces and lower-casing, because “Asha@Example.com ” and “asha@example.com” are the same person. I’d also ask why the duplicates exist. If the source system keeps creating them, removing them in a report only hides the problem.

How do you approach cleaning a new dataset?

What they’re checking: An analysis is only as good as the data under it. They’re checking that you work systematically and that someone else could reproduce your steps.

  • Profile before you fix anything: row counts, ranges, distinct values, missing values, date formats.
  • Leave the raw data untouched and clean it in a repeatable step, such as a query, script or documented transformation.
  • Reconcile totals against the source after cleaning, so you know nothing was lost by accident.
Sample answer

I start by profiling the data: how many rows, what each column contains, the ranges of numbers and dates, the distinct values in categories, and how much is missing. That usually surfaces the problems: inconsistent spellings like “Bengaluru” and “Bangalore”, mixed date formats, negative quantities, test accounts, duplicates. I check anything suspicious with whoever owns the data rather than guessing, because an outlier might be an error or a genuine bulk order. I keep the raw data untouched and do the cleaning in a repeatable step, like a SQL view or a script, so it can be rerun when new data arrives. Finally, I note what I changed and why, and reconcile totals with the source so anyone reading the results knows what was excluded.

Statistics and A/B testing

You rarely need advanced maths for an analyst role, but you do need to explain basic ideas accurately and recognise when a number could mislead.

When would you use the median instead of the mean?

What they’re checking: A quick check that you understand how outliers and skew distort a summary, and that you’d report the right number.

  • The mean uses every value, so a few extreme values pull it; the median is the middle value and barely moves.
  • Use a skewed example from business: order values, delivery times, revenue per user.
  • For skewed data, suggest reporting the median with a few percentiles, or both measures side by side.
Sample answer

The mean adds everything up and divides by the count, so a few extreme values can pull it a long way. The median is the middle value once the data is sorted, so it reflects a typical case. In skewed data the two can tell very different stories. Order values are a good example: if most customers place modest orders and a few businesses place very large ones, the mean is pulled up and describes almost nobody, while the median reflects a typical customer. So for skewed measures like revenue per user or delivery time, I’d lead with the median and add a high percentile to show the tail. I’d still look at the outliers themselves. Some are data errors to fix; some are your most valuable customers.

What’s the difference between correlation and causation?

What they’re checking: Analysts are often asked why something happened. This checks that you won’t present a pattern as a cause without evidence.

  • Correlation means two things move together; causation means changing one changes the other.
  • Name the usual explanations for a correlation without causation: a confounding variable, reverse causation, or chance.
  • Say how you’d get closer to a causal answer: a randomised experiment, or a careful comparison that controls for other factors.
Sample answer

Correlation means two variables move together; causation means one actually drives the other. In business data they get mixed up all the time. Say users of a particular feature have higher retention. It’s tempting to say the feature causes retention, but engaged users are more likely to discover features in the first place, so engagement could be driving both. That’s a confounder. It could also be reverse causation, or simply chance over a short period. The most reliable way to test cause and effect is an experiment where users are randomly assigned. If that isn’t possible, I’d compare similar groups, control for obvious factors like tenure and plan type, and present the finding as an association with the caveats stated.

How does an A/B test work, and what does statistical significance mean?

What they’re checking: Experiments drive many product decisions. Interviewers want a careful explanation, especially of p-values, which are widely misunderstood.

  • Cover the set-up: random assignment, one primary metric chosen in advance, and a sample size decided before the test starts.
  • Explain a p-value correctly: the probability of seeing a difference at least this large if the change truly had no effect. It is not the probability that the new version is better.
  • Mention the common traps: stopping as soon as results look significant, testing many metrics and reporting the one that “won”, and ignoring whether the effect is big enough to matter.
Sample answer

In an A/B test, users are randomly split between the current version and a change, and we compare a metric we chose in advance, such as conversion rate. Random assignment is what lets us attribute a difference to the change rather than to who happened to see it. Before starting, we set a significance level and the smallest effect worth detecting, and work out the sample size needed. A result is statistically significant when a difference at least as large as the one we saw would be unlikely if the change truly had no effect; in practice, the p-value falls below the level we set. That doesn’t mean the effect is large or important, so I’d also look at the confidence interval and whether the effect matters to the business. And I wouldn’t stop early just because it looks significant halfway through.

Excel, dashboards and business cases

How do you use pivot tables, and where do they stop being the right tool?

What they’re checking: Spreadsheets are still everywhere. This checks practical fluency, and whether you know when to move work into SQL or a BI tool.

  • Describe a real use, such as sales by region and month, then drilling into the detail.
  • Mention the skills around pivots: XLOOKUP or INDEX/MATCH, SUMIFS, keeping source data in a proper table.
  • Know the limits: very large data, regular refreshes by several people, and manual steps that are hard to audit.
Sample answer

I use pivot tables to summarise raw data quickly, for example sales by region and month with product category as a filter. I keep the source data as a formatted table so new rows are picked up on refresh, and I use calculated fields or helper columns for measures like margin. Double-clicking a value shows the rows behind it, which is a fast way to sanity-check a surprising number. Alongside pivots, I use XLOOKUP or INDEX/MATCH to bring in data from other sheets and SUMIFS for fixed-layout reports. Pivots stop being the right tool with very large datasets, or when a report has to be refreshed regularly by other people. At that point I move the logic into SQL or a BI tool so it’s repeatable and easier to audit.

How do you choose the right chart, and what makes a good dashboard?

What they’re checking: A dashboard nobody uses is wasted work. Interviewers want to see that you design for a specific audience and the decisions they make.

  • Match the chart to the question: lines for trends over time, bars for comparing categories, scatter plots for relationships, tables when people need exact values.
  • Avoid pie charts with many slices, dual axes and 3D effects; they make comparisons harder.
  • Build a dashboard around a few decisions, with the most important numbers at the top and detail further down.
  • Add the basics people rely on: a clear definition for each metric, the date of the last refresh, and only the filters they actually use.

Weekly orders dropped sharply last week. How would you investigate?

What they’re checking: This is the classic analyst case. They’re testing structure: checking the data first, then narrowing down where and why, before naming a cause.

  • Rule out data problems first: tracking changes, pipeline failures, a change in how the metric is defined.
  • Break the metric into its parts, for example visitors × conversion rate, and segment by platform, region, channel and new versus returning customers.
  • Check for external causes: holidays, seasonality, a competitor’s promotion, an outage, a release.
  • Talk through your plan before guessing at a cause. The structure is what’s being assessed.
Sample answer

First I’d confirm the drop is real. I’d check whether tracking, the data pipeline or the metric definition changed, and compare against another source such as payment records. If it’s real, I’d look at its shape: sudden or gradual, and whether the same week last year looked similar, which would point to seasonality or a holiday. Then I’d break it down by platform, region, acquisition channel, and new versus returning customers, to see whether the drop is everywhere or concentrated. I’d also split orders into their parts: fewer visitors, lower conversion, or fewer repeat purchases. If it’s concentrated, say among users on the latest app version, I’d check what changed in that release with engineering. Then I’d share what we know, what we don’t, and the next step.

Questions to ask the interviewer

  • Who are the main stakeholders for this role, and how do requests usually reach the team?
  • Where does the data live, and roughly how much of an analyst’s time goes into preparing it versus analysing it?
  • How are metric definitions agreed and documented here?
  • Can you tell me about a recent analysis that changed a decision?
  • What would a successful first three months look like in this role?

Common mistakes

  • Writing a query before clarifying the question; restate what’s being asked and confirm definitions, time period and what one row represents.
  • Trusting a join without checking row counts; compare counts before and after so duplicated rows don’t inflate totals.
  • Presenting a correlation as a cause; say “associated with” unless you have an experiment or a strong comparison design.
  • Showing every chart you made; lead with the answer and one or two visuals that support it.
  • Describing tools instead of impact; say which decision your analysis informed, not only that you built a dashboard.
  • Hiding uncertainty; state data gaps and assumptions plainly, which builds trust rather than weakening your result.

The day before

  • Practise five or six SQL problems out loud: joins, GROUP BY with HAVING, window functions and at least one date-based query.
  • Revise the ideas you may need to explain: mean versus median, distributions, correlation, p-values and confidence intervals.
  • Prepare two analyses you can walk through end to end, including a data problem you found and the decision the work informed.
  • Look at the company’s product and note three metrics that probably matter to them, and how you would measure each.
  • If you have a case presentation, rehearse it with a timer and prepare for “what would you do next?”.
  • For a remote interview, check your internet, microphone and access to any shared editor link you’ve been sent.
Practise these questions out loud

Lucimeet’s AI interviewer asks you the questions, listens to your answers, asks follow-ups and scores each one — then shows a better way to say it. Your first interview is free.