Free, no signup · ticks itself off as you play

Data analyst interview practice: a 7 or 14-day plan

An interview on the calendar is the best reason to practise. This page explains how analyst interviews usually run, then gives you a day-by-day plan through the levels that come up most: joins, GROUP BY, window functions, CTEs, pandas, Excel lookups and pivots, metric traps, A/B tests and a full case.

Start the plan

Who this is for

People with a data analyst, business analyst or BI interview coming up, whether it is a first analyst job or a move from another field. It assumes you have seen SQL before. If SELECT and WHERE are new to you, play the first SQL chapters before day 1.

  • Interview within a week: the 7-day plan, about two hours a day.
  • Two weeks or more: the 14-day plan, about an hour a day, with a mock interview in the middle to show your weak topics.

How a data analyst interview usually runs

Most companies use some version of these five rounds. Smaller teams often fold them into two or three calls, and some send a take-home instead of a live task. Ask the recruiter which rounds you will have and which tools they test: it is a normal question.

  1. Recruiter screen

    15–30 minutes, by phone or video

    Your background, why this role, salary range and notice period. Some recruiters add one or two definition questions, such as what a LEFT JOIN does. Prepare a one-minute summary of your background and one project you can describe with a number in it.

  2. SQL screen

    30–60 minutes, live in a shared editor or a timed online test

    Usually two to four questions that build on each other: an aggregate with GROUP BY, then a join, then a window function or CTE (top N per group, a running total, month over month). Interviewers watch whether you know the grain of each table, handle NULLs and notice when a join duplicates rows.

  3. Python or Excel task

    Live for 45–60 minutes, or a take-home over a few days

    Clean a messy file, group and merge tables, and write a short summary. Excel-heavy roles test lookups (XLOOKUP, VLOOKUP, INDEX/MATCH), SUMIFS and a PivotTable instead. You are scored on a correct result and on how clearly you state your assumptions.

  4. Case and metrics

    30–60 minutes with an analyst or a manager

    Questions like "revenue fell 10% last month: why?", "how would you measure this feature?" or "is this A/B result real?". They score structure: clarify the metric, split it (price and volume, channel, new and returning customers), check the data, then recommend. The classic traps are averages of ratios, mix shift, survivorship and stopping a test early.

  5. Behavioural

    30–45 minutes, often with the hiring manager

    A disagreement with a stakeholder, a mistake you made, a project you are proud of. Answer with STAR: situation, task, action, result, and put a number in the result. Four or five prepared stories cover most questions.

Your plan, day by day

Every item is a level in the game, run on the same Harbor & Pine store data. Levels you solve tick off here on their own: your progress stays in this browser, no account needed.

0 of 46 done About two hours a day.

0 of 66 done About an hour a day.

  1. Day 1

    GROUP BY and aggregates

    The most-asked SQL topic. Finishing the whole chapter also opens the case on day 7.

    1. How many customers came from referrals?

      SQL · Aggregates and GROUP BY

    2. Total units and revenue

      SQL · Aggregates and GROUP BY

    3. Orders by channel and status

      SQL · Aggregates and GROUP BY

    4. Our most loyal customers

      SQL · Aggregates and GROUP BY

    5. Why does this query fail?

      SQL · Aggregates and GROUP BY · Quiz

    6. Marketing spend per channel

      SQL · Aggregates and GROUP BY

    7. Bestsellers that rarely get discounted

      SQL · Aggregates and GROUP BY

    8. Debug: one order per customer on every channel?

      SQL · Aggregates and GROUP BY

    9. Boss: performance snapshot

      SQL · Aggregates and GROUP BY · Boss

  2. Day 2

    Joins without surprises

    LEFT JOIN filters, fan-out double counting and self-joins: where most SQL screen answers go wrong.

  3. Day 3

    CTEs and window functions

    What separates a junior answer from an analyst one: queries built in steps, top N per group, rankings and month over month.

    1. Customer lifetime value

      SQL · Subqueries and CTEs

    2. Find duplicate customer records

      SQL · Subqueries and CTEs

    3. Top 3 products in every category

      SQL · Window functions

    4. ROW_NUMBER vs RANK vs DENSE_RANK

      SQL · Window functions

    5. Year-to-date revenue

      SQL · Window functions

    6. Month-over-month growth

      SQL · Window functions

  4. Day 4

    pandas: groupby, merge and duplicates

    The Python task is nearly always group, merge and clean. The same questions as SQL in different syntax.

    1. Average shipping fee per channel

      Python · New columns, groupby and aggregation

    2. A category summary table

      Python · New columns, groupby and aggregation

    3. Orders by channel and status

      Python · New columns, groupby and aggregation

    4. Add product names to order lines

      Python · Merging tables

    5. Customers who never ordered

      Python · Merging tables

    6. Why did shipping revenue double?

      Python · Merging tables · Quiz

    7. Find duplicate customers

      Python · Cleaning messy data

  5. Day 5

    Excel: lookups, SUMIFS and PivotTables

    The usual Excel test in one sitting: fetch a value from another table, total with conditions, summarise with a pivot.

    1. List prices with VLOOKUP and IFERROR

      Excel · Decisions and lookups

    2. Product names with XLOOKUP

      Excel · Decisions and lookups

    3. INDEX/MATCH, right to left

      Excel · Decisions and lookups

    4. Several conditions with SUMIFS and COUNTIFS

      Excel · Conditional totals

    5. Your first PivotTable

      Excel · PivotTables

    6. Count orders by channel and status

      Excel · PivotTables

  6. Day 6

    Metric traps and A/B tests

    Case rounds are scored on catching these: averages of ratios, mix shift, survivors, p-values and peeking.

    1. Metric trap: the average discount rate

      KPIs · Revenue and orders · Quiz

    2. Metric trap: the LTV of the survivors

      KPIs · Customers · Quiz

    3. Metric trap: every device got better

      KPIs · Funnels and conversion · Quiz

    4. Two AOVs from the same orders

      KPIs · KPI design and dashboards · Quiz

    5. Desktop versus mobile conversion

      Statistics · Comparing groups and A/B tests

    6. What p = 0.03 actually says

      Statistics · Comparing groups and A/B tests · Quiz

    7. The test that won by peeking

      Statistics · Comparing groups and A/B tests · Quiz

  7. Day 7

    A full case, then a mock interview

    Frame a business question, analyse it in the tool you are strongest in, recommend. Then a mock interview against the clock.

    1. Frame the coupon question

      Casework · Do coupons pay for themselves? · Quiz

    2. Check and compare coupon orders

      Casework · Do coupons pay for themselves? · Analysis · Solve it in SQL, pandas or Excel

    3. Recommend: keep, change or test the coupons?

      Casework · Do coupons pay for themselves? · Quiz

    The case opens when any one of these chapters is complete:

    Day 1 completes the SQL one.

  1. Day 1

    COUNT, SUM and GROUP BY

    COUNT(*) against COUNT(column) and grouping by two columns are first-question material.

    1. How many customers came from referrals?

      SQL · Aggregates and GROUP BY

    2. Total units and revenue

      SQL · Aggregates and GROUP BY

    3. Orders by channel and status

      SQL · Aggregates and GROUP BY

  2. Day 2

    HAVING, execution order and the chapter boss

    Why WHERE cannot filter an aggregate. Finishing this chapter opens the case on day 14.

    1. Our most loyal customers

      SQL · Aggregates and GROUP BY

    2. Why does this query fail?

      SQL · Aggregates and GROUP BY · Quiz

    3. Marketing spend per channel

      SQL · Aggregates and GROUP BY

    4. Bestsellers that rarely get discounted

      SQL · Aggregates and GROUP BY

    5. Debug: one order per customer on every channel?

      SQL · Aggregates and GROUP BY

    6. Boss: performance snapshot

      SQL · Aggregates and GROUP BY · Boss

  3. Day 3

    INNER and LEFT joins

    Rows that disappear and the WHERE clause that quietly turns a LEFT JOIN into an inner one.

  4. Day 4

    Fan-out, self-joins and a broken join

    Double counting after a join is the error interviewers look for most. Debugging one is a common live task.

  5. Day 5

    Subqueries and CTEs

    Build an answer in readable steps, aggregate before you join, find duplicate records.

    1. Products priced above average

      SQL · Subqueries and CTEs

    2. Customers who returned something

      SQL · Subqueries and CTEs

    3. Customer lifetime value

      SQL · Subqueries and CTEs

    4. Find duplicate customer records

      SQL · Subqueries and CTEs

  6. Day 6

    Window functions: ranking, running totals, LAG

    Top N per group, ROW_NUMBER against RANK, year to date and month-over-month growth.

    1. Top 3 products in every category

      SQL · Window functions

    2. ROW_NUMBER vs RANK vs DENSE_RANK

      SQL · Window functions

    3. Year-to-date revenue

      SQL · Window functions

    4. Month-over-month growth

      SQL · Window functions

  7. Day 7

    Window frames, cohorts and a first mock

    Finish SQL with moving averages and a retention cohort, then a short mock to see which topics need the second week.

    1. 7-day moving average of orders

      SQL · Window functions

    2. Boss: cohort retention

      SQL · Window functions · Boss

    3. Month-over-month vs year-over-year

      SQL · Analytics patterns

    4. The partial-month trap

      SQL · Analytics patterns · Quiz

  8. Day 8

    pandas groupby

    New columns, named aggregation, two-column groups and filtering groups.

    1. Compute line revenue

      Python · New columns, groupby and aggregation

    2. Average shipping fee per channel

      Python · New columns, groupby and aggregation

    3. A category summary table

      Python · New columns, groupby and aggregation

    4. Orders by channel and status

      Python · New columns, groupby and aggregation

    5. Departments with at least seven people

      Python · New columns, groupby and aggregation

  9. Day 9

    pandas merge

    merge with how= and indicator=, then the fan-out trap again, in Python this time.

    1. Add product names to order lines

      Python · Merging tables

    2. Customers who never ordered

      Python · Merging tables

    3. Why did shipping revenue double?

      Python · Merging tables · Quiz

    4. Shipping fees on lighting orders

      Python · Merging tables

  10. Day 10

    Cleaning messy data

    Missing values, inconsistent text, duplicate customers and what mean() does with NaN: the core of most take-homes.

    1. Where do customers come from?

      Python · Cleaning messy data

    2. Fix the state codes

      Python · Cleaning messy data

    3. Find duplicate customers

      Python · Cleaning messy data

    4. What does mean() do with missing costs?

      Python · Cleaning messy data · Quiz

  11. Day 11

    Excel lookups and SUMIFS

    VLOOKUP, XLOOKUP and INDEX/MATCH, what each returns for a missing key, and totals with several conditions.

    1. List prices with VLOOKUP and IFERROR

      Excel · Decisions and lookups

    2. Product names with XLOOKUP

      Excel · Decisions and lookups

    3. INDEX/MATCH, right to left

      Excel · Decisions and lookups

    4. What a lookup returns for a missing key

      Excel · Decisions and lookups · Quiz

    5. Several conditions with SUMIFS and COUNTIFS

      Excel · Conditional totals

  12. Day 12

    PivotTables

    Build, count, show as % of a total and place fields: the second half of most Excel tests.

    1. Your first PivotTable

      Excel · PivotTables

    2. Count orders by channel and status

      Excel · PivotTables

    3. Where does each field go?

      Excel · PivotTables · Quiz

  13. Day 13

    Metric traps and A/B tests

    The reasoning case rounds score: averages of ratios, survivorship, mix shift, lift, p-values and peeking.

    1. Metric trap: the average discount rate

      KPIs · Revenue and orders · Quiz

    2. Metric trap: the LTV of the survivors

      KPIs · Customers · Quiz

    3. Metric trap: every device got better

      KPIs · Funnels and conversion · Quiz

    4. Metric trap: the margin that rose by itself

      KPIs · Profitability · Quiz

    5. Two AOVs from the same orders

      KPIs · KPI design and dashboards · Quiz

    6. Desktop versus mobile conversion

      Statistics · Comparing groups and A/B tests

    7. What p = 0.03 actually says

      Statistics · Comparing groups and A/B tests · Quiz

    8. The test that won by peeking

      Statistics · Comparing groups and A/B tests · Quiz

  14. Day 14

    A full case, then the final mock

    Frame, analyse and recommend on one business question, then a full-length mock interview to compare with day 7.

    1. Frame the coupon question

      Casework · Do coupons pay for themselves? · Quiz

    2. Check and compare coupon orders

      Casework · Do coupons pay for themselves? · Analysis · Solve it in SQL, pandas or Excel

    3. Recommend: keep, change or test the coupons?

      Casework · Do coupons pay for themselves? · Quiz

    The case opens when any one of these chapters is complete:

    Days 1 and 2 complete the SQL one.

Three habits that score in the room

  1. Say the grain first

    Before you write a query, say what one row of each table is ("one row per order line") and which join you need. Most wrong answers come from skipping this.

  2. Check your own result

    Compare row counts before and after a join, look for NULLs, and test one total you can check by hand. Saying "let me sanity-check this" is a plus, not a weakness.

  3. Ask before you assume

    Which date range? Do cancelled or refunded orders count? What does "active customer" mean here? Interviewers often leave these open on purpose.

Rehearse with the rest of the kit

30 or 45 minutes · scored by topic

Mock interview

Timed sessions that mix live SQL, pandas and Excel tasks with quiz and spoken questions, then score you by topic.

Start a mock interview

64 questions · SQL, pandas, Excel, Power BI, statistics, case

Interview questions

The questions that come up in real interviews, each with a model answer, the answer that loses points and a level to practise it.

Read the questions

4 guides · public datasets

Portfolio projects

Guided projects on public datasets with a write-up template. They give you real stories for the behavioural round and a link for your CV.

See the projects

Pick what may run on this site. You can change this any time from "Cookie settings" at the bottom of every page.