Skip to content
TechCareerWay

INTERVIEW PREP

Data analyst interview questions and answers

Most data analyst interviews test the same things: SQL, basic statistics, business thinking and how clearly you explain your work. Here are common questions, what interviewers look for, and how to answer.

By TechCareerWay · Updated · 4 min read

KEY TAKEAWAYS
  • Expect SQL, statistics, a business case and questions about your portfolio.
  • Interviewers care as much about how you think and explain as about the right answer.
  • Practise out loud. Knowing an answer and explaining it clearly are different skills.

Data analyst interviews usually have a few stages, often a screening call, a technical test and a conversation about a business problem. The details vary by employer, but these questions come up often.

SQL interview questions

SQL is the skill most analyst interviews test directly. Practise until you can write these without looking anything up.

What's the difference between WHERE and HAVING?

WHERE filters rows before they are grouped. HAVING filters groups after aggregation. To find customers who spent more than 100 in total, you need HAVING, because the total doesn't exist until after grouping.

SELECT customer_id, SUM(amount) AS total_spent
FROM orders
WHERE status = 'paid'
GROUP BY customer_id
HAVING SUM(amount) > 100;

What's the difference between an INNER JOIN and a LEFT JOIN?

An INNER JOIN keeps only rows that match in both tables. A LEFT JOIN keeps every row from the left table, with empty values where there's no match. Use a LEFT JOIN to find customers who have never placed an order.

How would you find duplicate rows?

Group by the columns that should be unique, then keep groups with more than one row.

SELECT email, COUNT(*) AS copies
FROM customers
GROUP BY email
HAVING COUNT(*) > 1;

What does a window function do?

It calculates across a set of related rows while keeping each row in the result. For example, you can rank each customer's orders by date, or compute a running total. Mention ROW_NUMBER() and PARTITION BY if you've used them.

Statistics questions

You rarely need advanced theory, but you do need to explain the basics in plain language.

What's the difference between the mean and the median?

The mean is the average and the median is the middle value. The median is more useful when extreme values distort the picture. Income is the classic example, since a few very high earners pull up the mean.

What's the difference between correlation and causation?

Correlation means two things move together. Causation means one actually affects the other. Ice cream sales and sunburn rise together because of warm weather, not because one causes the other.

How would you explain a p-value to a non-technical manager?

Keep it simple: "If there were really no difference, this is how likely we'd be to see a result at least this big just by chance." A small value is evidence against chance alone, but it doesn't tell you the effect is large or important.

Business case questions

These test how you approach a vague problem. There's rarely one right answer, so explain your thinking step by step.

Sales dropped 10% last month. How would you investigate?

A strong answer works through this in order:

  1. Check the data first. Make sure it's a real drop and not a tracking or reporting problem.
  2. Break it down. Compare by product, region, customer type and channel to see where it's concentrated.
  3. Look for causes. Consider seasonality, price changes, competitors and marketing changes.
  4. Recommend something. Say what you'd check next and what the business might do about it.

Which metrics would you track for this company's product?

Start from what the business is trying to achieve, then suggest a few measures. Explain why you chose them and what could make them misleading.

Questions about your portfolio and experience

Tell me about a project you're proud of.

Use a simple structure: the question you were trying to answer, the data you used, what you found, and what you'd do differently. Be ready for follow-up questions on any decision you made.

Tell me about a time your analysis was wrong, or nobody listened.

Be honest and focus on what changed afterwards. This shows you check your work and can handle disagreement.

How do you explain technical results to non-technical people?

Give a real example. Lead with the conclusion, use one clear chart and leave out the method unless someone asks.

Questions to ask the interviewer

Asking good questions shows real interest and helps you judge the job.

  • What decisions has this team's analysis changed recently?
  • Where does your data come from, and how much do you trust it?
  • What would a successful first six months look like?

Getting ready

Check your skills against what the job needs with the skill gap analyzer, then use the job readiness checklist before you apply. If you're earlier in your journey, the data analyst career path shows what to learn and in what order. For interview advice that applies to any developer role, read DSA vs system design.

Frequently asked questions

How should I prepare for a data analyst interview?

Practise writing SQL by hand, review basic statistics, and prepare to talk through two projects from question to conclusion. Read about the company too, and think about what data it probably cares about.

Do data analysts need to know Python?

It depends on the job. Many analyst roles focus on SQL, spreadsheets and a visualisation tool, while others ask for Python or R. Read the advert and prepare for what it mentions.

What if I don't know the answer in an interview?

Say so, then explain how you'd find out. Interviewers often learn more from how you approach something unfamiliar than from a memorised answer.

How many projects do I need for a data analyst portfolio?

Two or three good ones are usually enough, as long as you can explain them in depth. Choose work that answers a real question and shows your reasoning, not only your charts.

We use Google Analytics cookies to learn which pages help students. No ads, no selling data. Privacy policy