Data Analyst Interview Questions and Answers

Data analyst interviews test three things: can you get the data (SQL), can you make sense of it (Excel, statistics), and can you explain it to someone who doesn't care about the method (dashboards and business cases).

SQL carries the most weight. Expect live queries with joins, GROUP BY and window functions, then a case where you turn numbers into a recommendation.

Data Analyst interview rounds

  1. Screening test. SQL queries and Excel tasks, sometimes aptitude, on a timed platform.
  2. Technical round. Live SQL, statistics basics and questions on your dashboards or projects.
  3. Case round. A business problem: a metric dropped, why? Or: how would you measure a new feature?
  4. HR / hiring manager. Communication, stakeholder stories and why analytics.

SQL interview questions

WHERE vs HAVING?

WHERE filters rows before grouping; HAVING filters groups after aggregation. To keep customers with more than 5 orders: GROUP BY customer_id HAVING COUNT(*) > 5.

Explain the types of joins.

INNER JOIN keeps matching rows from both tables. LEFT JOIN keeps every row from the left table, with NULLs where the right has no match. RIGHT JOIN is the mirror. FULL OUTER JOIN keeps everything from both.

RANK vs DENSE_RANK vs ROW_NUMBER?

ROW_NUMBER gives 1, 2, 3 with no ties. RANK gives ties the same number and skips the next (1, 1, 3). DENSE_RANK gives ties the same number without gaps (1, 1, 2).

Find duplicate emails in a users table.

SELECT email, COUNT(*) FROM users GROUP BY email HAVING COUNT(*) > 1;

How do you calculate a running total?

With a window function: SUM(amount) OVER (ORDER BY order_date) for one running total, or add PARTITION BY customer_id for one per customer.

What is a CTE and when do you use one?

A named subquery defined with WITH at the top of a query. Use it to break a long query into readable steps, or to reuse the same subquery more than once.

Excel and dashboards interview questions

VLOOKUP vs INDEX-MATCH vs XLOOKUP?

VLOOKUP only looks to the right and breaks when columns move. INDEX-MATCH looks in any direction and is sturdier. XLOOKUP does both in one function and handles missing values, so use it where it's available.

What is a pivot table used for?

Summarising a large table by groups without formulas: sales by region and month, counts by category, with quick filters and drill-down.

How do you design a dashboard for a manager?

Start from the decisions they make. Put 3–5 key metrics at the top with trends against target, then breakdowns that explain changes. Fewer charts, clear titles, the same colours for the same things.

Power BI: what is DAX, and calculated column vs measure?

DAX is Power BI's formula language. A calculated column is computed per row and stored; a measure is computed at query time for whatever filters are on the visual. Use measures for totals and ratios.

Statistics interview questions

Mean vs median: when do you use the median?

When data is skewed or has outliers, like salaries or order values. One very large order pulls the mean up; the median stays representative.

What is a p-value?

The probability of seeing a result at least this extreme if there were really no effect. A small p-value (often below 0.05) means the result would be unlikely by chance alone; it isn't the probability the hypothesis is true.

Correlation vs causation?

Correlation means two things move together; causation means one changes the other. Ice-cream sales and drownings both rise in summer: correlated, but heat drives both. Experiments like A/B tests are how you show causation.

How would you handle missing data?

First find out why it's missing. Then drop rows if few and random, fill with median or a group average when reasonable, or flag it as its own category. Always say how much was missing and what you did.

Case questions interview questions

Daily orders dropped 20% yesterday. What do you check?

First, is the data right: a tracking or pipeline issue? Then split the drop by platform, city, category, new vs returning users and traffic source to see where it sits. Check outside causes: a holiday, an outage, a price change, a competitor sale.

How would you measure the success of a new feature?

Agree on one primary metric tied to the feature's goal (say, checkout conversion), a few guardrail metrics (refunds, load time), and compare against a control group or the period before, for long enough to cover weekly cycles.

How Aptivo answers a Data Analyst question live

During a real interview, Aptivo hears the question and shows an answer built from your resume and the job, a few seconds after the interviewer finishes. Something like this:

InterviewerWrite a query to find each customer's latest order.

AptivoI'd use ROW_NUMBER. WITH ranked AS (SELECT o.*, ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS rn FROM orders o) SELECT * FROM ranked WHERE rn = 1. Partitioning by customer restarts the numbering for each one, and ordering by date descending makes the latest order number 1. If two orders share a timestamp, I'd add order_id to the ORDER BY so the result is stable.

Read it, then say it in your own words. Answers mention your own projects when your resume has them.

Tips for your Data Analyst interview

  • Practise SQL by typing queries, not reading them. Window functions and joins are where most candidates slip.
  • For every project, know the business question, the data source, one insight and what changed because of it.
  • In case rounds, say your structure first (check data, segment, look outside), then go into detail.
  • Bring numbers into answers: rows, time saved, the metric you moved.

Frequently asked questions

Which SQL topics matter most for data analyst interviews?

Joins, GROUP BY with HAVING, subqueries and CTEs, and window functions (ROW_NUMBER, RANK, running totals). Date functions come up often too.

Do I need Python for a data analyst role?

Many roles list it, but SQL and Excel are asked first. Basic pandas (filtering, groupby, merges) is enough for most analyst interviews.

Power BI or Tableau?

Learn whichever the job post names. The ideas carry over: data model, measures, filters and clear visuals.

Interview questions for other roles