Skip to content
doqqs

Interview questions

Data Analyst Interview Questions and Answers

Data analyst interview questions with sample answers on SQL, messy data, statistics, dashboards and working with stakeholders, plus tips and questions to ask.

Data analyst interviews usually combine a technical assessment with conversations about how you turn data into decisions. A typical process starts with a recruiter screen, then a technical round that may include live SQL questions, a spreadsheet task or a take-home case study where you analyse a dataset and present findings. Final rounds often involve the hiring manager and business stakeholders you would support.

Expect questions on SQL joins and aggregations, cleaning messy data, basic statistics, choosing the right chart and explaining results to people without a technical background. Interviewers also want to know whether you question the data, check your work and focus on the business problem rather than just producing numbers.

To prepare, practise writing SQL by hand, including window functions and joins, and revise the tools in the job advert such as Excel, Power BI, Tableau, Python or R. Have one or two analysis projects ready to explain from question to recommendation, and prepare STAR examples about tight deadlines, conflicting requests and finding an error in your own work.

General questions

1. Tell me about yourself and your experience with data.

Why they ask: The interviewer wants a short summary of your tools, the types of analysis you have done and the business areas you have supported.

I am a data analyst with [number] years of experience in [industry]. I work mainly in SQL and [Power BI/Tableau/Python], supporting the [sales/operations/marketing] team. Recently I built [dashboard or analysis] that helped [team] [decision or outcome, such as cutting stock-outs or reallocating budget]. I enjoy the part where an analysis changes what someone actually does, and I want a role where I work closely with decision makers.

2. Why are you interested in this data analyst role?

Why they ask: This checks whether you understand what the team does, what data they work with and whether your interests match the role.

Your team supports [business area], which I find interesting because [reason]. The job description mentions [tool or type of analysis], which matches my recent work on [project]. I am also keen to work somewhere data is used to make real decisions, and from [source, such as the interview so far or company reports] it is clear analysts here sit close to the business.

3. Walk me through an analysis you did from start to finish.

Why they ask: They want to see a structured process: defining the question, getting and cleaning data, analysing it and making a clear recommendation.

The [team] asked why [metric] had fallen in [period]. I first agreed what exactly they needed to decide. I pulled data from [sources], cleaned duplicates and missing values, and checked totals against [finance or system reports]. Breaking the drop down by [dimension] showed most of it came from [segment]. I presented a short summary with two charts and a recommendation to [action]. The team [result], and I set up a dashboard so they could track it weekly.

Questions about the job

4. Explain the difference between an INNER JOIN and a LEFT JOIN, and when you would use each.

Why they ask: SQL joins are fundamental. This checks whether you understand how joins affect row counts and missing data, not just the syntax.

An INNER JOIN returns only rows that match in both tables, so customers with no orders would disappear. A LEFT JOIN keeps every row from the left table and fills missing matches with NULLs, so I would use it to list all customers including those with zero orders. I always check row counts before and after a join, because joining on a non-unique key can multiply rows and inflate totals. If I see that, I aggregate first or fix the join key.

5. How would you find the top three products by revenue in each region using SQL?

Why they ask: This tests window functions and grouping, which come up constantly in real analysis work.

I would first aggregate revenue by region and product with a GROUP BY. Then I would use a window function such as ROW_NUMBER or RANK, partitioned by region and ordered by revenue descending, inside a common table expression. Finally I would filter where the rank is three or less. I would choose RANK if ties should both appear and ROW_NUMBER if I need exactly three rows, and mention that choice to the stakeholder.

6. You receive a dataset with missing values, duplicates and inconsistent formats. How do you clean it?

Why they ask: Messy data is the daily reality of the job. The interviewer wants a careful, documented process rather than silently deleting rows.

I start by profiling the data: row counts, unique keys, nulls per column and value ranges. For duplicates, I check whether they are true duplicates or valid repeated records. I standardise formats such as dates, currencies and text casing. For missing values, I find out why they are missing before deciding whether to exclude, fill or flag them. I record each step in a script or query so it is repeatable, and I compare totals against a trusted source before using the data.

7. How do you decide which chart to use?

Why they ask: Good visualisation is about the message, not decoration. This checks whether you match chart types to the question being answered.

I start from the question. For trends over time I use a line chart, for comparing categories a sorted bar chart, and for showing parts of a whole with few categories a stacked bar. I avoid 3D effects and pie charts with many slices. I put the main finding in the chart title, label axes clearly and use colour only to highlight what matters. If someone needs exact values, a simple table is often better than any chart.

8. What is the difference between correlation and causation, and why does it matter in your work?

Why they ask: The interviewer is checking statistical thinking and whether you would overstate findings to stakeholders.

Correlation means two things move together; causation means one actually drives the other. For example, sales and marketing spend may both rise in December because of seasonality, not because one caused the other. In my work I am careful with wording, saying a factor is associated with an outcome unless we have run a controlled test such as an A/B test. When causation matters for a decision, I recommend an experiment or at least control for obvious factors.

Behavioural questions (use STAR)

9. Tell me about a time you found an error in your own analysis after sharing it.

Why they ask: They want honesty and evidence that you take accuracy seriously, correct mistakes quickly and build checks to prevent repeats.

Situation: I sent a weekly report showing [metric] up [amount], but later noticed a join had duplicated some rows. Task: I needed to correct it before anyone acted on it. Action: I told my manager and the recipients straight away, sent a corrected version with a short note on what changed, and fixed the query. Result: no decisions were affected, and I added a row count and total reconciliation check to the report so the same issue would be caught automatically.

10. Describe a time you explained a complex finding to a non-technical audience.

Why they ask: Analysis only has value if people understand and act on it. This tests communication and the ability to simplify without distorting.

Situation: I analysed customer churn for the [team], using [method]. Task: I had ten minutes at their monthly meeting. Action: I led with the answer, that customers who [behaviour] were far more likely to leave, showed one clear chart and gave two practical actions. I kept the method in an appendix for anyone who wanted it. Result: the team trialled [action] with [customer group], and asked me to track the results for the next quarter.

11. Tell me about a time you had several urgent requests at once.

Why they ask: Analysts often serve many stakeholders. The interviewer wants to see prioritisation, expectation management and clear communication.

Situation: in one week I had requests from [team A], [team B] and my manager, all marked urgent. Task: I could not do all three properly by the dates asked. Action: I asked each person what decision the work supported and when that decision would be made. That showed one request could wait a week and another could be met with an existing dashboard. I agreed new timings with each person and confirmed them in writing. Result: all three got what they needed in time for their decisions.

12. Give an example of when you automated a manual reporting task.

Why they ask: This checks initiative and practical skills in reducing repetitive work and errors.

Situation: a monthly report took [number] hours of copying data between spreadsheets. Task: I wanted to cut the time and the risk of copy errors. Action: I wrote a SQL query to pull the data directly, built the report in [Power BI/Python] and scheduled a refresh. I checked the new output against three past months before switching over. Result: the report now takes about [time] to review, and the team gets it [number] days earlier each month.

Situational questions

13. A manager asks you to produce numbers that support a decision they have already made. What do you do?

Why they ask: This tests integrity and diplomacy: staying objective while keeping a good working relationship.

I would agree to do the analysis but make clear I will report what the data shows. I would ask what question the decision is meant to answer and agree the measures before looking at results, which keeps it fair. If the findings do not support the decision, I would present them privately first, with any caveats and alternative options, so the manager is not surprised in front of others. My job is to give an honest picture, even when it is not the one people hoped for.

14. Two dashboards show different figures for the same metric. How would you resolve it?

Why they ask: Conflicting numbers destroy trust in data. The interviewer wants a methodical investigation and a fix that prevents it happening again.

I would compare how each dashboard defines the metric, including filters, date ranges, time zones and whether things like refunds or test accounts are excluded. Then I would check the data sources and refresh times. Usually the difference comes from a definition gap. I would agree the correct definition with the metric owner, update both dashboards or retire one, and document the definition in a shared place so new reports use it.

Questions to ask the interviewer

  • Which teams would I support most, and how do requests usually reach the analysts?
  • What does your data stack look like, and who maintains the data pipelines?
  • How are metric definitions agreed and documented across the business?
  • Can you give an example of a recent analysis that changed a decision here?
  • What would you expect me to deliver in my first three months?
  • How much of the role is building dashboards compared with one-off deeper analysis?

Tips for a data analyst interview

  • Practise SQL without autocomplete, covering joins, GROUP BY with HAVING, CASE statements and window functions, as live SQL tests are common in analyst interviews.
  • For take-home tasks, start your write-up with the answer and recommendation, then the evidence. Note your assumptions and how you checked data quality.
  • Bring one portfolio piece you can explain fully, ideally using a public dataset, showing the question, cleaning steps, analysis and the decision it supports.
  • When given a case question, ask what decision the analysis supports before jumping into metrics. Interviewers notice candidates who start with the business problem.
  • Revise basic statistics you may be asked to explain plainly, such as mean versus median, sample size, significance and why averages can mislead.
  • Check which tools the advert lists and be honest about your level. Saying you know Excel well and are learning Python is better than overstating either.

Sample answers are starting points. Replace everything in [square brackets] with your own examples, and keep each answer to about two minutes.

Choose your country