Analyst Arena › Data analyst interview questions
Data analyst interview questions, with answers
Data analyst interviews usually test four things: SQL, how you reason about metrics, spreadsheet basics, and how you work through an open-ended product problem. Here are questions from each, with the kind of answer that gets a yes.
How analyst interviews are usually structured
| Round | What they check | How to prepare |
|---|---|---|
| SQL | Joins, grouping, window functions, and whether your numbers are right. Usually live, in a shared editor. | Write queries against a real schema under a timer. See the SQL test guide. |
| Metrics and product sense | Defining a metric, investigating a drop, judging an A/B test. | Practise a structure for "why did X fall?" and "how would you measure Y?" questions. |
| Excel or Sheets | Lookups, SUMIFS, pivots, and catching data that quietly breaks a formula. | Know XLOOKUP / INDEX-MATCH, conditional sums and data cleaning cold. |
| Case or take-home | Turning a messy question into an analysis and a recommendation. | Practise end-to-end cases and say the recommendation first. |
| Behavioural | Working with stakeholders, owning a mistake, pushing back on a bad metric. | Prepare three stories with numbers in them. |
SQL interview questions
Get each user's most recent address from a table that keeps every change.
addresses (user_id, city, updated_at) has one row per change.
Show a good answer
SELECT user_id, city, updated_at
FROM (
SELECT *, ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY updated_at DESC) AS rn
FROM addresses
) t
WHERE rn = 1;Mention the tie case: if two rows share the same updated_at, add a tie-breaker column to the ORDER BY so the result is deterministic.
What share of users who viewed a product went on to buy within 7 days?
events (user_id, event, event_time) with events view and purchase.
Show a good answer
WITH first_view AS (
SELECT user_id, MIN(event_time) AS viewed_at
FROM events WHERE event = 'view' GROUP BY user_id
)
SELECT ROUND(100.0 * COUNT(DISTINCT p.user_id) / COUNT(DISTINCT v.user_id), 1) AS pct_converted
FROM first_view v
LEFT JOIN events p
ON p.user_id = v.user_id
AND p.event = 'purchase'
AND p.event_time >= v.viewed_at
AND p.event_time < v.viewed_at + INTERVAL '7 days';The interviewer wants to hear you choose the denominator out loud (users who viewed, not all users) and keep the time condition in the JOIN, not the WHERE, so non-buyers stay in the count.
What is day-7 retention for each signup week?
users (user_id, signup_date) and sessions (user_id, session_date). A user is retained if they had a session exactly 7 days after signing up.
Show a good answer
SELECT date_trunc('week', u.signup_date) AS signup_week,
COUNT(*) AS signups,
ROUND(100.0 * COUNT(s.user_id) / COUNT(*), 1) AS d7_retention_pct
FROM users u
LEFT JOIN (SELECT DISTINCT user_id, session_date FROM sessions) s
ON s.user_id = u.user_id
AND s.session_date = u.signup_date + 7
GROUP BY 1
ORDER BY 1;Deduplicate sessions first so a user with three sessions that day counts once. Also say what you'd do about the newest cohort, whose day 7 hasn't happened yet: exclude it.
Metrics and product sense questions
Daily active users dropped 10% yesterday. How do you investigate?
The most common analyst interview question. They're checking that you have a structure and don't jump to a cause.
Show a good answer
- Is it real? Check for a tracking or pipeline problem first: a late data load, a broken event after a release, a change in how "active" is counted.
- Is it unusual? Compare with the same weekday last week and last year. Holidays, festivals and salary days move consumer apps a lot.
- Where is it? Split by platform, app version, country or city, new vs returning users, and acquisition channel. A drop concentrated in one slice points to its cause.
- What changed? Releases, outages, marketing spend, a competitor launch, a payment provider failing.
- Size it and recommend. Say how much of the 10% each cause explains, and what you'd do next.
How would you measure the success of a new "save for later" button?
A product manager asks you to define success before launch.
Show a good answer
Start from what the feature is for: helping people come back and buy what they were unsure about. Then name:
- One primary metric: purchase rate of saved items within 14 days.
- Adoption: share of product-page visitors who save at least one item.
- A guardrail: overall conversion, so "save" isn't just stealing purchases that would have happened right away.
Then say how you'd test it (an A/B test, randomised by user) and how long you need to run it to see a realistic change.
An experiment shows a 3% lift in conversion with p = 0.08. Do we ship?
The PM wants a yes or a no.
Show a good answer
Neither, yet. Explain that p = 0.08 means a result this large would turn up fairly often by chance even if the change did nothing. Then check: was the sample size planned in advance, or is someone peeking? Is the lift consistent across days and segments? What does it cost to be wrong? If the change is cheap and low-risk, running it longer to reach the planned sample is the usual answer. If the guardrail metrics are flat and the business is happy with that risk, shipping can be a reasonable call, but say it's a judgment, not a significant result.
Excel and AI questions
When would you use XLOOKUP or INDEX/MATCH instead of VLOOKUP?
A favourite warm-up question.
Show a good answer
VLOOKUP can only look right, breaks when someone inserts a column (the column number is hard-coded), and defaults to an approximate match if you forget the last argument. XLOOKUP and INDEX/MATCH look in any direction, refer to the return column directly, and XLOOKUP defaults to an exact match and has a built-in "if not found" value. Mention the classic trap: numbers stored as text never match real numbers, so a lookup returns #N/A even though the values look identical.
An AI assistant wrote this query for "number of customers who ordered". What's wrong?
SELECT COUNT(customer_id) FROM orders;Show a good answer
It counts orders, not customers: someone who ordered five times counts five times. The fix is COUNT(DISTINCT customer_id), and you should also ask whether cancelled orders count as "ordered". Interviewers increasingly test this: whether you can brief an AI tool precisely and catch confident, wrong output instead of pasting it into a deck.
A four-week prep plan
- Week 1: find your level. Take the L1 tests and note the topics you missed. Do the free practice cases every day.
- Week 2: fix SQL gaps. Joins without double counting, window functions, and dates. Aim to cross L2 and L3.
- Week 3: metrics and cases. Practise one "why did X drop?" and one "how would you measure Y?" question a day, out loud, in five minutes each.
- Week 4: rehearse. Book a mock interview with an experienced analyst and work through the written scorecard you get afterwards.
Questions people ask
What SQL is asked in data analyst interviews?
Mostly joins, GROUP BY with HAVING, CASE, date handling and window functions such as ROW_NUMBER, RANK, LAG and running totals. Senior roles add cohorts, retention, funnels and medians. The hard part is usually getting the denominator and the joins right, not the syntax.
How do I practise SQL for interviews?
Write queries against a realistic schema under a timer, then check the result, not just that the query runs. Analyst Arena's level tests and practice cases do both in the browser, with instant grading.
Do data analyst interviews include Excel?
Often, especially for business and operations analyst roles: lookups, SUMIFS, pivot tables and cleaning messy data. Some companies give a short spreadsheet task before the main rounds.
How should I answer product sense questions?
Use a structure: check the data is right, compare with normal patterns, split by segment to find where the change is, list what changed, then size each cause and recommend a next step. Say your assumptions out loud.
Find out where you stand
L1 is four 15-minute tests: SQL, Excel, AI prompting and dashboards. Sign in with Google and start straight away. You'll get a certificate code anyone can check.