Data analyst interview questions and how to answer them

Data analyst interviews test four things: SQL, enough statistics to avoid wrong conclusions, the ability to turn a vague business question into an analysis, and clear communication of the result. Most processes include a live SQL exercise, a case or take-home built on a dataset, and behavioral questions about working with stakeholders. SQL is where most candidates are filtered out, so it deserves the largest share of preparation.

By Published 6 min read

How data analyst interviews are usually structured

  1. Recruiter screenBackground, tools you have used, and why this company. Sometimes a few quick knowledge checks.
  2. SQL screenA shared editor or an online test with two to four queries of rising difficulty, usually on tables such as orders, users and events.
  3. Case or take-homeA dataset and an open question, such as why sign-ups fell. You analyze, then present findings and recommendations.
  4. Final roundsConversations with the hiring manager and with the people who would use your work: product, marketing, finance or operations.

Titles vary. A product analyst role leans toward experiments and funnels, a business intelligence role toward dashboards and data modeling, and a marketing analyst role toward attribution and campaign measurement. Read the job description for the tools and the team, and weight your preparation to match.

SQL questions

Common SQL question types and what a good answer shows
QuestionConcept testedWhat interviewers look for
Find the top three products by revenue in each category.Window functions with PARTITION BYChoosing between ROW_NUMBER, RANK and DENSE_RANK, and saying how ties are handled
Which customers ordered in January but not in February?Anti-joinsLEFT JOIN with an IS NULL filter or NOT EXISTS, and awareness of NULL behavior in NOT IN
Calculate month-over-month revenue growth.LAG and date truncationHandling the first month and division by zero
Compute seven-day retention by sign-up week.Self-joins on events, cohortsA clear definition of retained before writing the query
Find duplicate records and keep the latest.GROUP BY with HAVING, or ROW_NUMBERStating which column defines the latest row
Why does this query return more rows than expected?Join fan-outSpotting a one-to-many join that multiplies rows and inflates sums
What is the difference between WHERE and HAVING?Order of executionWHERE filters rows before grouping, HAVING filters groups after
Common SQL question types and what a good answer shows. Scroll sideways on a small screen.

Talk while you write. Say what the grain of each table is, meaning what one row represents, before you join anything. Most wrong answers in SQL interviews come from joining tables at different grains and then summing. Checking the row count after each join, out loud, is a habit interviewers notice.

Statistics and experiment questions

  • When would you report the median and not the mean? When the data is skewed or has outliers, such as order values or session lengths. Give an example where the two tell different stories.
  • What does a p-value mean? The probability of seeing a result at least this extreme if there were truly no effect. It is not the probability that the result is due to chance, and it says nothing about the size of the effect.
  • How would you design an A/B test for a new checkout button? Name the primary metric, the unit of randomization, the sample size needed for the smallest effect worth detecting, the duration, and a guardrail metric that must not get worse.
  • A test shows a lift after three days. Should we ship? Not on that basis alone. Mention stopping early on a noisy result, weekly cycles in behavior and the novelty effect.
  • Two metrics are correlated. What can you conclude? Only that they move together. Discuss confounders and what evidence would support a causal claim.
  • What is Simpson's paradox? A trend that appears in every subgroup and reverses when the groups are combined, because group sizes differ. Give a short example, such as conversion by device.

Business case questions

A typical prompt is "Daily active users dropped 10 percent last week. How would you investigate?" The interviewer is grading your structure, not a final answer. A sound order of work looks like this.

  1. Check the measurementWas there a tracking change, a logging outage or a new definition? A surprising share of metric drops are data problems.
  2. Describe the dropSudden or gradual? One day or sustained? Compare with the same week last year for seasonality.
  3. SegmentBreak it down by platform, country, acquisition channel, app version, and new versus returning users. Look for a segment that explains most of the change.
  4. Line it up with eventsReleases, pricing changes, marketing campaigns ending, outages, and anything competitors did.
  5. RecommendState the most likely cause, how confident you are, and the next check or action.

Fictional example

Answering "Tell me about an analysis that changed a decision"
Our support team wanted to hire four more agents because ticket volume was up 30 percent. I broke the tickets down by topic and found that almost all of the growth was one category: password resets after we changed the login flow. I showed the product manager the weekly trend next to the release date. They fixed the reset email in one sprint, volume fell back within a month, and the team hired one agent instead of four. What I took from it is to segment before accepting the headline number.

Tools and visualization questions

  • Which chart would you use for this data, and why? Lines for trends over time, bars for comparing categories, scatter plots for relationships. Explain why a pie chart with eight slices is hard to read.
  • How do you build a dashboard people use? Start from the decisions it should support, limit it to a few metrics, define each one in writing, and review usage after launch.
  • How do you check your own work? Reconcile totals against a trusted source, test on a small known case, and have someone else read the query.
  • Excel or spreadsheet tasks. Lookups, pivot tables and conditional aggregation still appear, especially in finance and operations roles.
  • Python or R. Where listed in the job description, expect data cleaning with a dataframe library: handling missing values, merging, grouping and reshaping.

Behavioral questions for analysts

  • Tell me about a time a stakeholder disagreed with your findings.
  • Describe a request that was unclear. How did you find out what was really needed?
  • Tell me about a mistake you found in your own analysis after sharing it.
  • How do you prioritize when three teams want something by Friday?
  • Explain a technical result to me as if I were not technical.

These follow the usual story format covered in the behavioral question guide. For analysts, the strongest stories end with a decision someone made, not with a chart that was delivered.

A two-week preparation plan

  • Days 1 to 5: two SQL problems a day on joins, aggregation and window functions. Write them without autocomplete.
  • Days 6 to 8: review descriptive statistics, hypothesis tests and experiment design. Explain each idea aloud in two sentences.
  • Days 9 to 11: practice three metric-investigation cases, speaking the structure out loud.
  • Days 12 to 14: rehearse two project stories and prepare questions about the team's data stack and who consumes the analysis.

Speaking your reasoning is a separate skill from having it. If you practice with Natively, an AI interview assistant for Mac and Windows, it transcribes the mock session on your computer so you can read back how you explained a query and where you skipped a step. In practice sessions it can also read a SQL problem from a screenshot and talk through an approach.

Questions people ask

What questions are asked in a data analyst interview?

Expect live SQL on joins, aggregation and window functions, practical statistics such as medians, p-values and A/B test design, a business case about a metric that changed, and behavioral questions about stakeholders.

How much SQL do I need for a data analyst interview?

You should write joins, GROUP BY with HAVING, subqueries, window functions such as ROW_NUMBER and LAG, and date logic without help, and explain why a join might multiply rows.

How do I answer a question about a metric that dropped?

Check the measurement first, describe the shape of the drop, segment by platform, country, channel and user type, compare with releases and events, then state the most likely cause and the next step.

Do data analyst interviews include Python?

Some do. Where the job description lists Python or R, expect data cleaning with a dataframe library: missing values, merges, grouping and reshaping.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP