SQL
1. What is the difference between WHERE and HAVING?
WHERE filters rows before grouping; HAVING filters groups after GROUP BY, so it can use aggregates such as COUNT or SUM.
2. Explain INNER JOIN vs LEFT JOIN.
An INNER JOIN keeps only rows that match in both tables. A LEFT JOIN keeps every row from the left table and fills unmatched right-side columns with NULL.
3. How do you find duplicate records?
Group by the columns that define a duplicate and keep groups with COUNT(*) > 1, or use ROW_NUMBER() over a partition to label and remove extra copies.
4. What is a window function?
A function such as ROW_NUMBER, RANK or a running SUM that calculates across related rows while keeping each row, unlike GROUP BY, which collapses them.
Data cleaning
5. How do you handle missing values?
First find out why they are missing. Then remove, fill (for example with a median or a category such as “Unknown”) or flag them, and document the choice, because each option changes the result.
6. How do you detect outliers?
Plot the data, then use rules such as values beyond 1.5 times the interquartile range or a z-score threshold. Check whether an outlier is an error or a real, important case before removing it.
7. Why document cleaning steps?
So that the analysis can be repeated and checked. A reviewer should be able to see exactly what changed between the raw and the cleaned data.
Statistics
8. Mean or median: which would you report for salaries?
Usually the median, because a few very high values pull the mean up and misrepresent the typical case.
9. Does correlation imply causation?
No. Two variables can move together because of a third factor or by chance. Establishing cause needs an experiment or careful study design.
10. What is a p-value?
The probability of seeing a result at least as extreme as the one observed if there were really no effect. A small p-value is evidence against “no effect”; it does not measure how large or important the effect is.
A/B testing
11. How would you run an A/B test?
Define one metric and hypothesis, randomly split users into control and variant, decide the sample size before starting, run the test for the planned period, then compare the metric with a suitable statistical test.
12. Why not stop a test as soon as it looks significant?
Checking repeatedly and stopping early inflates false positives. Decide the sample size or duration in advance.
Dashboards and communication
13. How do you choose a chart?
Match it to the question: lines for trends over time, bars for comparing categories, scatter plots for relationships, and maps only when location matters.
14. What makes a dashboard useful?
It answers specific questions for a specific audience, shows the key numbers first, labels everything clearly and avoids clutter.
15. How do you explain a finding to a non-technical manager?
Lead with the conclusion and recommended action, give one supporting number and one chart, then state the main limitation.
Case-style questions
16. Sales dropped 10% last month. How do you investigate?
Confirm the data is correct, then break the drop down by product, region, channel and customer segment, compare with seasonality and recent changes, and form hypotheses you can test.
17. Tell me about a project you did.
Use the question, data, method, result and limitation structure. Interviewers want to hear your own decisions, for example why you cleaned data a certain way.
18. How would you measure customer churn?
Define churn precisely (for example, no purchase in 90 days), calculate the churn rate per period and segment, then look for patterns that distinguish customers who leave.
Build answers like these from real work in the free Data Analytics internship, or read the data analytics career guide.
Common questions
What is asked in a fresher data analyst interview?
Usually a short SQL exercise, questions on data cleaning and basic statistics, a chart or dashboard discussion and a walkthrough of one of your projects.
How should I prepare for a SQL round?
Practise filtering, grouping, joins and window functions on real tables, and explain your query out loud as you write it.
