Data analyst roles are one of the most common entry points into data careers in India, from IT services firms to fintech and e-commerce startups. The interview is practical: can you pull the right numbers, check they are correct and explain what they mean?
This page collects 28 data analyst interview questions with model answers: basics, SQL, Excel and visualisation, experienced-level business cases, and a set of AI questions that now show up in many data analyst interviews. SQL answers include short queries you can practise.
I tell every fresher the same thing: an analyst is paid for trustworthy numbers and clear explanations, not for fancy tools. The answers below are written with that in mind.
Use the Save as PDF button above if you want an offline copy for revision.
What do data analyst interviews test?
Data analyst interviews test whether you can get accurate data, analyse it with the right tools and turn it into a clear business recommendation.
Most loops cover these areas:
| Area | What they ask | Typical round |
|---|---|---|
| SQL | Joins, GROUP BY, HAVING, window functions, CTEs | Online test or live coding |
| Excel | XLOOKUP or VLOOKUP, pivot tables, conditional formulas | Assignment or screen-share |
| Statistics | Mean, median, distributions, basic hypothesis testing | Technical round |
| Visualisation | Chart choice, dashboard design in Power BI or Tableau | Portfolio or case round |
| Business sense | KPIs, metric drops, stakeholder questions | Final or hiring-manager round |
| AI tools | Using ChatGPT or copilots for SQL, validating AI output | Increasingly in every round |
Freshers usually get a SQL or Excel test first. Experienced candidates get more case questions and are asked about dashboards they have owned.
How to prepare for a data analyst interview in 2 weeks
The fastest plan is daily SQL practice, one dashboard project and spoken business cases.
- Days 1 to 5: SQL. Solve three problems a day covering joins, GROUP BY, HAVING, window functions and CTEs. Write queries by hand before running them.
- Days 6 to 7: Excel. Practise XLOOKUP, INDEX and MATCH, pivot tables and conditional formatting on a sales dataset.
- Days 8 to 10: dashboard project. Build one Power BI or Tableau dashboard on public data, such as Indian state-wise sales or cricket statistics, and write three insights from it.
- Days 11 to 12: statistics and cases. Revise mean, median, standard deviation and correlation, then practise metric-drop cases out loud.
- Days 13 to 14: AI and mock rounds. Practise using an AI assistant for SQL and checking its output, then do timed mocks with our free AI interview practice guide.
If you want to move towards data science later, our data scientist interview questions show the next level of statistics and modelling.
Basic data analyst interview questions for freshers
Expect these in the first round. Short, clear answers with one example each work best.
1. What does a data analyst do?
EasyA data analyst collects, cleans and analyses data to answer business questions and support decisions. Day to day, that means writing SQL queries, building reports and dashboards, tracking KPIs and explaining trends to managers. For example, an analyst at a food delivery startup might find out why repeat orders fell in Pune last month. The role sits between raw data and business teams, so communication matters as much as technical skill.
Interviewer tip: Mention one example from the company's own industry if you can.
2. What are the steps in a data analysis process?
EasyA typical process has six steps: define the question, collect the data, clean it, analyse it, visualise the results and communicate a recommendation. The first step matters most, because a vague question leads to a useless analysis. In practice the process loops: cleaning often reveals gaps that change the question, and stakeholders ask follow-ups after seeing the first chart. Interviewers like it when you say the loop is normal, not a failure.
3. What is data cleaning, and what issues do you look for?
EasyData cleaning is fixing or removing incorrect, incomplete, duplicate or inconsistent data before analysis. I check for missing values, duplicate rows, wrong data types, inconsistent labels (Bengaluru, Bangalore and BLR in the same column), impossible values like negative quantities, and outliers. Each fix should be documented so others can repeat it. Cleaning often takes more time than the analysis itself, and skipping it is the fastest way to present wrong numbers.
4. When would you use mean, median or mode?
EasyUse the mean for roughly symmetric data without extreme values, the median for skewed data or data with outliers, and the mode for categorical data or the most common value. Order values on an e-commerce site are usually skewed by a few bulk orders, so the median gives a better picture of a typical order. Pair any average with a measure of spread, such as standard deviation or interquartile range, so the reader sees the variation too.
5. What is the difference between structured and unstructured data?
EasyStructured data fits neatly into rows and columns with a fixed schema, like a sales table in a database. Unstructured data has no fixed format, such as customer reviews, emails, images or call recordings. Semi-structured data, like JSON from an app, sits in between. Analysts mostly work with structured data in SQL and Excel, but AI tools now make it easier to pull structure out of text, for example tagging reviews by topic and sentiment.
6. What is a KPI? Give examples.
EasyA KPI (key performance indicator) is a metric that shows how well a business is doing against a specific goal. Good KPIs are tied to a decision, measured consistently and owned by someone. Examples include monthly active users for an app, conversion rate for an e-commerce site, average delivery time for a quick-commerce company and loan default rate for a lender. A metric that nobody acts on is just a number, not a KPI.
SQL interview questions for data analysts
SQL is the most tested skill in data analyst interviews. Practise writing these without autocomplete.
1. What are the different types of SQL joins?
EasyAn INNER JOIN returns only rows that match in both tables. A LEFT JOIN returns all rows from the left table plus matches from the right, with NULLs where there is no match. A RIGHT JOIN does the opposite, and a FULL OUTER JOIN returns all rows from both. A CROSS JOIN returns every combination. To find customers who never ordered, LEFT JOIN customers to orders and keep rows where the order ID is NULL.
Interviewer tip: Watch for duplicate keys in the right table, which silently multiply rows after a join.
2. Write a query for total sales by category, showing only categories above 1 lakh.
MediumFilter rows with WHERE, group with GROUP BY, then filter groups with HAVING.
SELECT category,
SUM(amount) AS total_sales,
COUNT(order_id) AS orders
FROM orders
WHERE status = 'delivered'
GROUP BY category
HAVING SUM(amount) > 100000
ORDER BY total_sales DESC;WHERE removes cancelled orders before grouping, and HAVING keeps only large categories after aggregation. You cannot put SUM inside WHERE.
3. What are window functions? Explain ROW_NUMBER, RANK and DENSE_RANK.
MediumWindow functions calculate a value across a set of related rows without collapsing them into one row, unlike GROUP BY. You define the window with OVER, often with PARTITION BY and ORDER BY. For scores of 90, 90 and 80, ROW_NUMBER gives 1, 2, 3; RANK gives 1, 1, 3, skipping a rank after the tie; and DENSE_RANK gives 1, 1, 2 with no gap. Use them for top-N per group, running totals and comparisons with previous rows.
4. How do you find duplicate records in a table?
MediumGroup by the columns that should be unique and keep groups with more than one row.
SELECT email, COUNT(email) AS copies FROM customers GROUP BY email HAVING COUNT(email) > 1;
To remove duplicates while keeping one copy, number the rows with ROW_NUMBER partitioned by email and delete or exclude rows where the number is above 1. Always confirm with the business which record to keep, such as the latest one.
5. Write a SQL query to calculate month-over-month revenue growth.
HardAggregate revenue by month in a CTE, then use LAG to compare each month with the previous one.
WITH monthly AS (
SELECT DATE_TRUNC('month', order_date) AS month,
SUM(amount) AS revenue
FROM orders
GROUP BY DATE_TRUNC('month', order_date)
)
SELECT month,
revenue,
LAG(revenue) OVER (ORDER BY month) AS prev_revenue,
(revenue - LAG(revenue) OVER (ORDER BY month))
/ NULLIF(LAG(revenue) OVER (ORDER BY month), 0) AS mom_growth
FROM monthly
ORDER BY month;DATE_TRUNC is PostgreSQL syntax; MySQL and SQL Server use different date functions. NULLIF avoids division by zero.
Interviewer tip: Say which SQL dialect you are writing in before you start.
6. What is the difference between UNION and UNION ALL?
EasyUNION combines the results of two queries and removes duplicate rows, while UNION ALL keeps every row, including duplicates. Because UNION has to check for duplicates, it is usually slower on large data. Use UNION ALL when you know the sets do not overlap or when duplicates are meaningful, such as stacking January and February transaction tables. Both queries must return the same number of columns with compatible data types.
7. What is a CTE, and when would you use one?
MediumA CTE (common table expression) is a named temporary result defined with WITH at the start of a query, which you can then reference like a table. Use CTEs to break a complex query into readable steps, such as first calculating monthly revenue and then computing growth. Recursive CTEs can also walk hierarchies like an employee and manager chain. In interviews, CTEs make your logic easier to follow, which interviewers notice.
Excel, Power BI and Tableau interview questions
1. What is the difference between VLOOKUP, XLOOKUP and INDEX MATCH?
EasyVLOOKUP searches the first column of a range and returns a value from a column to its right; it defaults to approximate match, which causes many silent errors. INDEX with MATCH can look left or right and works in older Excel versions. XLOOKUP, available in Microsoft 365 and Excel 2021 onwards, looks in any direction, defaults to exact match and lets you set a value for not-found cases. If the company uses an older Excel version, know INDEX MATCH well.
Interviewer tip: Always mention exact match. Interviewers love catching the VLOOKUP default.
2. What is a pivot table, and when do you use it?
EasyA pivot table summarises large data by grouping and aggregating it, for example total sales by region and month, without writing formulas. You drag fields into rows, columns, values and filters, and Excel recalculates instantly. Use it for quick exploration, checking totals and answering ad hoc questions from managers. Remember to refresh it after the source data changes, and convert the source to an Excel table so new rows are included automatically.
3. How do you choose the right chart for your data?
EasyChoose the chart based on the question you are answering. Use a line chart for trends over time, a bar chart for comparing categories, a scatter plot for relationships between two numbers, a histogram for distributions and a table when exact values matter. Avoid pie charts with more than a few slices and 3D effects that distort size. A good test: can someone get the main point within five seconds?
4. What is the difference between a calculated column and a measure in Power BI?
MediumA calculated column is computed row by row when the data refreshes and is stored in the model, like a profit column equal to revenue minus cost. A measure is calculated at query time based on the current filters in a visual, like total profit for whichever region the user selects. Measures are usually preferred for aggregations because they respond to filters and do not increase model size. Both are written in DAX.
5. Power BI or Tableau: which would you choose and why?
MediumBoth are strong BI tools, and the right choice usually depends on what the company already uses. Power BI fits naturally into organisations on Microsoft 365 and is often cheaper to roll out widely. Tableau is known for flexible, polished visual exploration. The core skills transfer: data modelling, choosing the right chart and designing for the audience. In an interview, say which one you know best and show you could pick up the other quickly.
6. How do you design a dashboard for senior management?
MediumStart by asking what decisions they make and which three to five KPIs support those decisions. Put the most important numbers at the top with comparisons to target and last period, then add trend charts and only the breakdowns they act on. Keep filters simple, label everything clearly and note the data refresh time. I would rather ship a dashboard with five trusted numbers than one with fifty that nobody reads.
Data analyst interview questions for experienced candidates: business cases
Structure case answers as: clarify the metric, check the data, segment, find the cause, recommend.
1. Sales dropped 15% this month. How would you investigate?
HardFirst, confirm the data is correct: check for pipeline delays, tracking changes or a different date range. Then compare against seasonality, for example the previous festive season. Break sales into orders multiplied by average order value, and segment by region, channel, product category and new versus repeat customers to find where the drop sits. Check internal changes like price increases or stock-outs, and external ones like competitor sales. Finish with the likely cause and a recommended action.
Interviewer tip: Splitting revenue into volume and value in your first minute shows structured thinking.
2. What metrics would you track for a food delivery app?
MediumI would group metrics by funnel stage. For growth: new users and orders per day. For conversion: app open to order rate and checkout drop-off. For operations: average delivery time, on-time percentage and cancellation rate. For economics: average order value and cost per delivery. For retention: repeat order rate within 30 days. Then pick one north star metric, such as weekly orders per active user, and explain why it reflects real customer value.
3. What is cohort analysis, and how do you measure retention?
HardCohort analysis groups users by a shared starting point, usually their sign-up or first purchase month, and tracks their behaviour over time. A retention table shows what percentage of each cohort is still active after one, two or three months. It reveals whether newer users stick better than older ones, which overall active-user totals hide. For example, a cohort acquired through heavy cashback might churn faster once the offer ends.
4. A stakeholder says your numbers are wrong. What do you do?
MediumStay calm and treat it as a data question, not a personal one. Ask which number they expected and where their figure comes from. Most disagreements come from different definitions, filters or date ranges, such as gross versus net sales. Walk through your query logic together, reconcile the two numbers and document the agreed definition. If you did make an error, own it quickly and fix the source so it does not repeat.
5. How do you handle a dataset too large for Excel?
MediumExcel has a limit of just over one million rows per sheet, so larger data needs other tools. Push the heavy work to the database with SQL, using filters and aggregations so you only export a summary. Alternatively, use Power Query or the Power BI data model, or Python with pandas for files that fit in memory. The principle is to bring the computation to the data instead of moving huge raw files around.
AI questions in data analyst interviews: ChatGPT, copilots and BI tools
More interviewers now ask how you use AI tools in your work. They want to see speed with judgement, not blind trust.
1. How do you use ChatGPT or other AI assistants for SQL and analysis?
EasyI use AI assistants to speed up drafting, not to replace thinking. Typical uses are writing a first draft of a query from the table schema, explaining an unfamiliar query, suggesting Excel formulas, generating Python for a chart and summarising findings for an email. Good prompt engineering helps: share the schema, the business definition and an example output. Then I review and test everything before it reaches a report.
2. How do you validate SQL or insights generated by AI?
MediumI check AI output the way I would check a new teammate's work. Confirm the tables, columns and join keys exist and match the schema, run the query on a small sample where the answer is known, and compare totals with a trusted report. Look for silent errors such as duplicate rows after a join or wrong date filters. Large language models can hallucinate column names and confident explanations, so never present an AI insight you cannot trace back to data.
Interviewer tip: A concrete story of catching an AI mistake is worth more than any definition here.
3. What AI features are available in BI tools like Power BI and Tableau?
MediumMajor BI tools now include AI assistants that can create visuals or answer questions from natural language, summarise dashboards in text and suggest insights or anomalies. Examples include Copilot in Power BI and Tableau's AI features such as Tableau Pulse. Availability depends on licence, region and admin settings, and these features change quickly, so check current documentation. The analyst's job remains defining metrics correctly, because AI summaries are only as good as the underlying data model.
4. What are the data privacy risks of using AI tools for analysis?
HardThe main risk is sharing confidential or personal data, such as customer names, phone numbers or financial details, with a tool the company has not approved. Some tools may store or process inputs outside your control. Follow company policy, use approved enterprise tools, share schemas or masked samples instead of raw data, and aggregate before asking for help. In India, the Digital Personal Data Protection Act, 2023 adds legal obligations around personal data, so check with your compliance team.
Common mistakes in data analyst interviews
The most common mistake is presenting numbers without checking them or explaining what they mean.
- Writing SQL without clarifying definitions. Ask what counts as an active user or a completed order before you query.
- Ignoring joins that duplicate rows. Always sanity-check row counts after a join.
- Busy dashboards. Too many charts signal that you have not decided what matters.
- No recommendation. Every case answer should end with "so we should do X".
- Trusting AI output blindly. Show that you verify before you share.
My contrarian advice: do not spend your first month on Python or machine learning. For most fresher analyst roles, strong SQL, Excel and one clean dashboard will get you further. Once you are in, our machine learning interview questions are a good next step, and the business analyst interview questions help if you lean towards requirements and stakeholder work.
Last-week plan before your data analyst interview
In the final week, focus on speed and clarity rather than new tools.
- Days 1 and 2: Solve ten SQL problems on joins, window functions and CTEs, timed.
- Day 3: Redo one Excel task with XLOOKUP and a pivot table from scratch.
- Day 4: Walk through your dashboard project out loud in three minutes.
- Day 5: Practise two metric-drop cases and one stakeholder question.
- Day 6: Prepare your AI tools story: how you use them and how you check them.
- Day 7: Light revision and rest.
Your interview prep checklist
- Write SQL with all join types, GROUP BY, HAVING, window functions and CTEs by hand.
- Use XLOOKUP, INDEX MATCH and pivot tables confidently in Excel.
- Build one Power BI or Tableau dashboard and write three insights from it.
- Prepare a structured answer for a metric-drop case.
- Have one story about using an AI assistant and catching its mistake.
- Practise explaining a KPI and a chart to a non-technical person in one minute.