Data Analyst Interview Questions & Model Answers
Crack the data analyst technical screen. Master SQL window functions, cohort retention modeling, business case studies, and dashboard visualization design.
Data Analyst interviews test how you solve real problems, the trade-offs you weigh and how clearly you explain your thinking. Prepare the 2 questions below, tie each example to a result you can measure, and practise saying the answers out loud.
Top Data Analyst interview questions and answers
Read the takeaway first, then the model answer. Rewrite it with your own project and numbers before you practise.
- Q1TechnicalSenior
How do you calculate 30-day user retention using SQL window functions?
Takeaway: Self-join or window function comparing signup timestamp against activity timestamps.
Model answerTo calculate 30-day retention, I first create a Common Table Expression (CTE) defining each user’s initial signup date using `MIN(activity_date) OVER(PARTITION BY user_id)`. Then, I compute the date difference (`DATEDIFF`) between the subsequent activity dates and that cohort signup date. Finally, I group by signup cohort week/month and calculate the count of distinct active users at Day 30 divided by the initial cohort size.
Structure: State CTE approach → Window function syntax → Grouping and ratio calculation.
- Q2BehavioralMid
How do you explain the difference between correlation and causation to a non-technical executive?
Takeaway: Use intuitive real-world analogies (ice cream sales and shark attacks).
Model answer"I explain it using the classic summer analogy: ice cream sales and shark attacks both spike during July and August. They are strongly correlated, but eating ice cream doesn’t cause shark attacks—the hidden underlying variable is warm weather driving more people to the beach. In business, if marketing email opens correlate with high purchases, we must run a controlled A/B holdout test to prove whether the emails drove the purchase or if active loyal buyers were simply more likely to open our emails anyway."
Structure: Simple relatable analogy → Business application → Controlled experimentation methodology.
How to prepare for a Data Analyst interview
- Practice writing advanced SQL syntax by hand: CTEs, RANK() vs DENSE_RANK(), and self-joins.
- Always link technical queries back to commercial business impact.
Data Analyst interview FAQs
What SQL questions are asked most frequently for data analysts?
Finding the second highest salary (DENSE_RANK), calculating rolling 7-day revenue (SUM OVER ROWS BETWEEN), and cohort retention matrices.
Practise out loud. It’s free.
A voice interviewer asks Data Analyst questions, follows up on your answers, and tells you what was strong and what was thin.
- Pick a round
PM case, consulting case, AI engineer round or a speaking coach
- Answer out loud
The interviewer follows up on what you actually said
- Read the feedback, go again
What was strong, what was thin, then a retry