Data Analyst interview questions and answers
Data analyst interviews almost always include a SQL test, questions on Excel and a dashboard tool such as Power BI or Tableau, and a business case where you turn numbers into a clear recommendation.
Skills and knowledge
What is the difference between INNER JOIN and LEFT JOIN?
Sample answer: An INNER JOIN returns only rows that match in both tables. A LEFT JOIN returns every row from the left table, with matching data from the right table or NULL where there is no match. Use LEFT JOIN when you need to keep all customers, for example, even those with no orders.
How do you find the second highest salary in a table?
Sample answer: One clear way is a window function: rank salaries with DENSE_RANK() OVER (ORDER BY salary DESC) in a subquery or CTE and select the rows where the rank is 2. DENSE_RANK handles ties correctly. A simpler alternative is SELECT MAX(salary) FROM employees WHERE salary < (SELECT MAX(salary) FROM employees).
What is the difference between WHERE and HAVING?
Sample answer: WHERE filters rows before they are grouped; HAVING filters groups after aggregation. For example, WHERE country = 'India' keeps only Indian orders, while HAVING SUM(amount) > 10000 keeps only customers whose total is above 10,000.
How do you clean a messy dataset?
Sample answer: Check its shape and types, remove exact duplicates, handle missing values (drop, fill or flag them depending on why they are missing), fix inconsistent text such as city spellings and date formats, check outliers against business sense, and document every step so the work can be repeated.
Mean or median: which would you report for salaries?
Sample answer: Usually the median, because a few very high salaries pull the mean up and make it unrepresentative. The mean suits data that is roughly symmetric without extreme values. Showing both, or the distribution, is even better.
What makes a good dashboard?
Sample answer: It answers a few specific questions for a named audience, puts the most important number at the top left, uses simple chart types (bars and lines over pies), keeps colours consistent and meaningful, shows comparisons such as target or last period, and loads quickly. If nobody acts on it, it is decoration.
What is a VLOOKUP, and what would you use instead?
Sample answer: VLOOKUP finds a value in the first column of a range and returns a value from another column in that row. It breaks if columns are inserted and cannot look left. XLOOKUP, or INDEX with MATCH, is more flexible and safer.
What is correlation, and why is it not causation?
Sample answer: Correlation measures how strongly two variables move together, from -1 to 1. It does not prove one causes the other: both may be driven by a third factor, as ice cream sales and sunburn are both driven by hot weather. To show cause you need an experiment such as an A/B test or careful causal methods.
What is a window function in SQL?
Sample answer: A window function calculates across a set of related rows without collapsing them into one, unlike GROUP BY. Examples are running totals with SUM() OVER (ORDER BY date), ranking with ROW_NUMBER() or RANK(), and comparing to the previous row with LAG(). They are common in analyst tests.
What is a pivot table and when would you use one?
Sample answer: A pivot table summarises data by grouping rows and columns and calculating totals, counts or averages, such as sales by region and month. It is the fastest way to explore a dataset in Excel or Google Sheets before building formal reports.
How do you explain a chart to a non-technical manager?
Sample answer: Start with the one-sentence takeaway, then point to the part of the chart that shows it, give the number that matters, explain what might be causing it, and finish with what you recommend. Avoid talking through every series and axis.
What is cohort analysis?
Sample answer: Cohort analysis groups users by when they started, such as the month they signed up, and tracks how each group behaves over time, like how many are still active after one, two and three months. It shows whether retention is improving for newer customers.
Past experience
Tell me about an analysis that changed a decision.
Sample answer: Describe the business question, the data you used, one surprising finding, how you presented it (one clear chart beats ten), and the decision that followed with its result. Interviewers want to see impact, not only technique.
Tell me about a time your data was wrong. What happened?
Sample answer: Be honest: explain the mistake, how it was found, how quickly you corrected it and told the people using it, and what checks you added afterwards, such as row counts, reconciliation to finance totals or peer review.
What would you do?
Sales dropped 20% last week. How would you investigate?
Sample answer: First check the data is right: tracking changes, missing loads, a holiday. Then break the drop down by region, product, channel, new versus returning customers and device to find where it is concentrated. Compare with the same week last year and recent changes such as prices, releases or campaigns, then share the likely cause and what to check next.
Two teams report different numbers for the same metric. How do you resolve it?
Sample answer: Get both queries or reports and compare definitions: date ranges, time zones, filters, how duplicates and refunds are handled, and data sources. Find the exact difference, agree with both teams on one definition, document it and build a single shared source.
Open Data Analyst jobs
Remote · Germany
Staff Compensation Analyst
Remote · United States
Lead Data Analyst
Remote · Worldwide
Legal Analyst, Operations & Automation
Boston, Massachusetts, United States
Safeguards Enforcement Analyst, Integrity & Authenticity Evaluations
Boston, Massachusetts, United States
Safeguards Enforcement Analyst, CBRNE Evaluations
United States