Skip to content
WASL Career Tools Browse jobs

Data Analyst Interview Questions and Answers

Data analyst interviews typically include a SQL or spreadsheet exercise, questions on statistics and data quality, and a case where you turn a vague business question into an analysis. Hiring managers care as much about how clearly you communicate findings to non-technical people as about your technical skills.

What interviewers want

Questions and sample answers

  1. Technical

    1. What is the difference between an INNER JOIN and a LEFT JOIN?

    Why they ask: Joins are the most common source of wrong numbers in analysis, so they want to confirm you understand them precisely.

    How to answer: Define both clearly, give a concrete example, and mention the practical pitfalls such as row duplication and filtering a left-joined table in the WHERE clause.

    Show sample answer

    An INNER JOIN returns only rows where the join key matches in both tables. A LEFT JOIN returns every row from the left table and fills columns from the right table with NULL where there is no match. For example, joining customers to orders with a LEFT JOIN keeps customers who have never ordered, which matters if I am calculating conversion. Two traps I watch for: if the right table has several rows per key, the join multiplies rows and inflates sums, and if I filter a right-table column in the WHERE clause, I silently turn my LEFT JOIN back into an inner join. In that case I move the condition into the ON clause.

  2. Technical

    2. How would you find the second-highest salary in each department using SQL?

    Why they ask: It tests window functions and how you handle ties, which are common in real reporting work.

    How to answer: Use a window function partitioned by department and explain the difference between ROW_NUMBER, RANK, and DENSE_RANK. Ask how ties should be treated.

    Show sample answer

    I would first ask how to treat ties, for example if two people share the top salary. Assuming we want the second distinct salary, I would use DENSE_RANK in a common table expression: select department, employee, and salary, with DENSE_RANK() OVER (PARTITION BY department ORDER BY salary DESC) as the rank, then select rows where the rank equals 2 from that CTE. DENSE_RANK gives tied salaries the same rank without skipping numbers. RANK would skip a number after a tie, so a department with two top earners would have no rank 2, and ROW_NUMBER would pick an arbitrary person among ties, which is usually not what the business wants.

  3. Behavioral

    3. Tell me about an analysis that changed a business decision.

    Why they ask: They want proof that your work drives action, not just reports that nobody reads.

    How to answer: Use STAR and quantify both the finding and the outcome. Explain how you communicated it to the decision-maker.

    Show sample answer

    Our marketing team planned to increase spend on a paid social channel because it had the lowest cost per acquisition. I was asked to build the budget model, and I noticed that customers from that channel had a 90-day retention rate of 18%, compared with 41% from search. I calculated three-month revenue per customer by channel and found that, despite the cheap acquisition, social was our least profitable channel. I presented a one-page summary with a single chart of payback period by channel. The team shifted about 30% of the planned increase to search, and blended customer payback improved from five months to just under four over the next quarter.

  4. Technical

    4. How do you handle missing or inconsistent data?

    Why they ask: Real data is messy, and they want to know you will not silently produce misleading results.

    How to answer: Explain that you first investigate why data is missing, then choose a treatment based on the cause and impact. Emphasise documenting assumptions.

    Show sample answer

    I start by quantifying the problem: what percentage of rows are affected, in which columns, and whether it is concentrated in a time period or source. Then I try to find the cause, for example a tracking change or a form field that became optional. If missing values are random and few, I might exclude them. If they are systematic, dropping them can bias results, so I might flag them, impute with a sensible value, or analyse that segment separately. For inconsistencies like different spellings of country names, I standardise with a mapping table. Whatever I choose, I write the assumption into the report so readers know how it affects the numbers.

  5. Situational

    5. A stakeholder tells you a dashboard number looks wrong. What do you do?

    Why they ask: Trust in data is fragile, and they want to see a calm, systematic approach to investigating discrepancies.

    How to answer: Describe taking it seriously, clarifying what they expected and why, then tracing the number from source to dashboard. Close the loop either way.

    Show sample answer

    First I would thank them and ask what number they expected and where that expectation came from, because often two teams define a metric differently. Then I would trace the figure back: check the dashboard filters and date range, rerun the underlying query, and compare it with the source system for a small sample. If I found a bug, I would fix it, tell everyone who uses the dashboard, and add a check so it does not recur. If the number was correct, I would explain the definition clearly and consider adding a short note or tooltip on the dashboard so the same confusion does not happen again.

  6. Technical

    6. Explain the difference between correlation and causation with an example.

    Why they ask: Confusing the two leads to bad business decisions, and analysts are expected to guard against it.

    How to answer: Give a clear definition, a realistic business example with a confounder, and say how you would test for causation, such as with an experiment.

    Show sample answer

    Correlation means two variables move together; causation means one actually produces a change in the other. For example, we might see that users who use a mobile app feature have higher retention. That does not prove the feature causes retention, because highly engaged users are more likely both to discover the feature and to stay anyway. Engagement is a confounder. To test causation, the best approach is a randomised A/B test where some users are prompted to use the feature and others are not. If an experiment is not possible, I would look for a natural experiment or control for confounders, while being clear the result is weaker evidence.

  7. Technical

    7. How would you analyse the results of an A/B test?

    Why they ask: Experimentation is central to many analyst roles, and mistakes here lead to shipping changes that do not work.

    How to answer: Cover checking the setup, the primary metric, statistical significance, practical significance, and guardrail metrics. Mention not stopping tests early based on peeking.

    Show sample answer

    Before looking at the outcome, I check the test was healthy: users were split in the expected ratio, assignment was random, and the sample size and duration matched what we planned. Then I compare the primary metric, say conversion rate, between groups and calculate a confidence interval and p-value, often with a two-proportion z-test. I also check practical significance, since a statistically significant 0.1% lift may not be worth the engineering cost. I look at guardrail metrics like refunds or page load time, and at major segments such as mobile versus desktop. I avoid declaring a winner early just because a daily check looked significant, because repeated peeking inflates false positives.

  8. Role-specific

    8. How do you decide which chart to use for a piece of data?

    Why they ask: Communication is a core part of the job, and the wrong chart can hide or distort the message.

    How to answer: Tie chart choice to the question being answered: comparison, trend, distribution, or relationship. Mention simplicity and accessibility.

    Show sample answer

    I start with the one thing I want the audience to take away. For trends over time I use a line chart; for comparing categories, a bar chart sorted by value, usually horizontal if labels are long. For distributions I use a histogram or box plot, and for relationships between two numeric variables, a scatter plot. I avoid pie charts with more than three or four slices and 3D effects, because they make comparisons hard. I write the conclusion as the chart title, such as saying that returns doubled after the policy change, highlight the key series in colour and grey out the rest, and check that the colours work for colour-blind readers.

  9. Behavioral

    9. Tell me about a time you had to explain a technical finding to a non-technical audience.

    Why they ask: Analysts are only valuable if decision-makers understand and trust their work.

    How to answer: Show how you adapted the message: leading with the implication, using plain language, and holding back technical detail unless asked.

    Show sample answer

    I ran a churn analysis using logistic regression and needed to present it to our customer success leadership team. Instead of showing coefficients, I opened with the headline: customers who do not log in during their first 14 days are about three times as likely to cancel within six months. I showed one simple bar chart and gave two example customer journeys. I kept the model details in an appendix for anyone curious. The team created a day-7 onboarding call for inactive new accounts. Three months later, first-90-day cancellations in the pilot group were down from 12% to 8%.

  10. Situational

    10. You receive five urgent data requests from different teams on the same day. How do you prioritise?

    Why they ask: Analysts are often overloaded, and they want to see judgment and communication rather than burnout or favouritism.

    How to answer: Explain how you assess impact and deadlines, clarify which requests are truly urgent, and communicate timelines openly. Mention using existing reports or self-service where possible.

    Show sample answer

    I would quickly ask each requester what decision the data will inform and when that decision happens. That usually separates the genuinely urgent, like numbers for a board meeting tomorrow, from requests that could wait a few days. I would check whether any could be answered with an existing dashboard, and point people there with a quick explanation. For the rest, I would rank by business impact and deadline and tell each person when they can expect a result. If two high-priority requests truly conflicted, I would ask my manager to help decide rather than guess, and I would note recurring requests as candidates for a self-service report.

  11. Role-specific

    11. What tools do you use for analysis, and how do you choose between them?

    Why they ask: They want to know your toolkit matches theirs and that you choose tools pragmatically.

    How to answer: Name the tools you genuinely know, such as SQL, Excel, Python or R, and a BI tool, and explain when each fits. Be honest about your level.

    Show sample answer

    SQL is my everyday tool for pulling and aggregating data from our warehouse, and I am comfortable with window functions and CTEs. For quick one-off analysis or when stakeholders want to play with numbers themselves, I use Excel or Google Sheets, mainly pivot tables and XLOOKUP. For anything repeatable, statistical, or too large for a spreadsheet, I use Python with pandas in a notebook, which also makes my work reproducible. For recurring reporting, I build dashboards in Tableau so people can self-serve. I have used Power BI on one project, so I know the basics, but I would need a short ramp-up to be as fluent as I am in Tableau.

  12. Situational

    12. Sales dropped 15% last week. How would you investigate why?

    Why they ask: This case question tests structured thinking under ambiguity, which is the heart of the analyst role.

    How to answer: Start by validating the data, then break the metric down systematically by segment, and consider internal and external causes. Talk through a structure rather than jumping to one answer.

    Show sample answer

    First I would confirm the drop is real and not a tracking or data pipeline issue, for example by comparing with the payment system. Then I would check whether it is unusual compared with the same week last year, in case of seasonality or a holiday. Next I would break sales into traffic, conversion rate, and average order value to see which component moved. Then I would segment by channel, region, device, product, and new versus returning customers to find where the drop is concentrated. Finally I would check for internal changes such as a site release, price change, or paused campaign, and external factors like a competitor promotion or weather.

Questions to ask the interviewer

Common mistakes

Ready to apply? Browse jobs and search for “data analyst”, update your resume and write a cover letter.

More interview guides

Next steps