Interview Insights · Data Analyst
Why Data Analyst Candidates Freeze on the Simplest Questions
Quick summary — Basic questions
People freeze on simple questions because they stored definitions, not pictures. A basic question feels dangerous for two reasons. The candidate suspects a trick, so they search for a deeper answer that is not needed. And they learned the concept as a sentence from a list of interview answers, so when the sentence does not come out exactly, nothing else is there. Answering from a small, concrete example removes both problems. This page shows the example-first method on the basics that interviewers ask most often.
In this guide you will learn:
- Why easy questions trigger more panic than hard ones
- The example-first method for any fundamentals question
- Worked answers for WHERE vs HAVING, COUNT and JOIN basics
- Excel basics interviewers still ask, with clear examples
- A fundamentals refresh plan for the week before interviews
SECTION 01Why easy questions cause more panic than hard ones
When I ask a hard question, candidates expect to struggle, so they relax into thinking aloud. When I ask an easy one, they feel they must answer instantly and perfectly. Any hesitation feels like proof that they are underprepared, and the panic builds on itself.
There is also the trick-question fear. A candidate hears 'What is the difference between WHERE and HAVING?' and thinks, 'This is too simple; there must be a catch.' They start hunting for an advanced answer and lose the simple one they actually know. Most of the time there is no trick. I ask basics to check foundations before I build harder questions on them.
| Cause of freezing | What goes on in your head | What it looks like | Fix |
|---|---|---|---|
| Trick-question fear | This is too easy, there must be a catch | Long pause, then an overcomplicated answer | Answer the simple version first |
| Memorised sentence | I need the exact line I learned | Starts a definition, stops halfway | Store examples, not sentences |
| Rusty basics | I moved on to Python and forgot SQL | Mixes up similar terms | Refresh fundamentals weekly |
| Perfectionism | If I miss a detail, I fail | Refuses to start speaking | Give the core rule, add detail after |
Interviewer: What is the difference between WHERE and HAVING?
Candidate: WHERE is used to... filter... and HAVING is
also used to filter but... with... aggregate... I think
HAVING is used with GROUP BY... and WHERE is... not?
(The candidate knows this, but is trying to recall a
sentence instead of picturing what the query does.)Interviewer: What is the difference between WHERE and HAVING?
Candidate: Picture an orders table with city and amount.
WHERE filters rows before grouping, so
WHERE amount > 500
keeps only big orders.
HAVING filters groups after aggregation, so
GROUP BY city HAVING SUM(amount) > 100000
keeps only cities with large total sales.
So WHERE works on individual rows, HAVING on group
results. I can use both in one query.
The example-first version is not longer because the candidate knows more. It is longer because they had a picture to describe. Once you are describing a picture, the words come naturally, and the panic has nothing to grip.
SECTION 02Worked basics: COUNT, NULLs and JOINs
The second group of basics that trips candidates involves NULLs and joins. These are small details that cause real reporting bugs, which is exactly why interviewers ask them. The candidate who answers with a tiny example table immediately shows that they have seen the problem in practice.
Use the same three-step pattern: describe a tiny table, run the query in your head, then state the rule. Here is a small dataset you can keep in your memory for most of these questions.
| Question | Tiny example | Answer in one line | Edge case to mention |
|---|---|---|---|
| COUNT(*) vs COUNT(email) | Three customers, one with no email | 3 versus 2; COUNT(column) skips NULLs | COUNT(DISTINCT email) also skips NULLs |
| INNER vs LEFT JOIN | Customers and orders; one customer never ordered | INNER drops that customer, LEFT keeps them | LEFT JOIN plus WHERE on right table can undo it |
| UNION vs UNION ALL | Two lists sharing one name | UNION removes duplicates, UNION ALL keeps them | UNION ALL is faster when duplicates are fine |
| NULL = NULL | Two rows with missing city | Comparison is not true; use IS NULL | GROUP BY puts NULLs in one group |
CREATE TABLE customers (id INT, name VARCHAR(20), email VARCHAR(40));
INSERT INTO customers VALUES
(1, 'Asha', 'asha@example.com'),
(2, 'Ravi', NULL),
(3, 'Meena', 'meena@example.com');
SELECT COUNT(*) AS all_rows, -- 3
COUNT(email) AS with_email -- 2
FROM customers;
SELECT name FROM customers WHERE email = NULL; -- no rows
SELECT name FROM customers WHERE email IS NULL; -- Ravi-- Goal: all customers with their order count
SELECT c.name, COUNT(o.order_id) AS orders
FROM customers c
LEFT JOIN orders o ON o.customer_id = c.id
GROUP BY c.name;
-- Customers with no orders show 0 (COUNT skips NULL ids)
-- Trap: filtering the right table in WHERE
SELECT c.name, COUNT(o.order_id) AS orders
FROM customers c
LEFT JOIN orders o ON o.customer_id = c.id
WHERE o.status = 'delivered'
GROUP BY c.name;
-- Customers with no orders disappear, like an INNER JOIN.
-- Fix: move the condition into the ON clause:
-- LEFT JOIN orders o ON o.customer_id = c.id
-- AND o.status = 'delivered'
The LEFT JOIN trap is a favourite follow-up after a basic join question. If you mention it yourself, unprompted, the interviewer usually skips several easier questions because you have already shown depth.
SECTION 03Excel basics that still catch candidates off guard
Many data analyst candidates now focus on Python and Power BI, and then freeze when asked an Excel question they last thought about months ago. Excel remains a daily tool in many analyst roles in India, and interviewers still use it as a quick check of fundamentals.
The same example-first approach works. Instead of reciting 'absolute reference locks the cell', describe what happens when you drag a formula down a column. Below are the Excel basics I hear most often, with answers built from small examples.
| Question | Small example | Clear answer | Bonus point |
|---|---|---|---|
| What does $B$1 do? | Tax rate in B1, prices in A2:A10 | The reference stays fixed when the formula is copied | B$1 locks only the row |
| VLOOKUP vs XLOOKUP | Find a product's price by code | XLOOKUP can look left and defaults to exact match | VLOOKUP's last argument must be FALSE for exact |
| COUNTIF vs COUNTIFS | Orders by city, then by city and month | COUNTIFS takes several conditions | Same pattern for SUMIFS |
| Why use a pivot table? | Sales by region and month | Summarises quickly without formulas | Refresh it after source data changes |
Prices in A2:A10, tax rate in B1
C2: =A2*(1+$B$1)
Drag down -> C3 becomes =A3*(1+$B$1)
The price moves, the tax rate stays fixed.
Product codes in E2:E100, prices in G2:G100
Look up code in J2:
=VLOOKUP(J2, E2:G100, 3, FALSE)
=XLOOKUP(J2, E2:E100, G2:G100, "Not found")
Orders sheet: city in B, month in C
=COUNTIFS(B:B, "Noida", C:C, "Oct")Interviewer: What is the difference between VLOOKUP and XLOOKUP?
Candidate: Say I have product codes and prices and I
want the price for one code.
VLOOKUP needs the code column to be the first column
of the range, and I give it a column number. If
someone inserts a column, the number can break.
XLOOKUP takes the lookup column and the return column
separately, so it can look left, it does exact match
by default, and I can set a 'not found' message.
If the company uses an older Excel version, I would
use INDEX with MATCH instead.
Mentioning INDEX and MATCH for older Excel versions is a small but useful touch. It shows you think about the environment your work will run in, not just the newest feature.
SECTION 04A one-week fundamentals refresh plan
Use this plan in the week before interviews. It takes about thirty minutes a day and focuses on the basics that cause freezes. Each day, build the tiny example yourself instead of reading an answer.
DAY 1 WHERE vs HAVING, ORDER of SQL clauses
DAY 2 COUNT variants, NULL behaviour, COALESCE
DAY 3 INNER, LEFT, FULL joins; the LEFT JOIN trap
DAY 4 GROUP BY, DISTINCT, UNION vs UNION ALL
DAY 5 Excel references, XLOOKUP, COUNTIFS, SUMIFS
DAY 6 Pivot tables, basic charts, when to use each
DAY 7 Mixed quiz with a friend, answered aloud
Each day: build a 3-row example, write the query or
formula, say the rule in one sentence.MY EXAMPLE TABLES (memorise these)
customers(id, name, email, city)
1 Asha asha@.. Noida
2 Ravi NULL Delhi
3 Meena meena@.. NULL
orders(order_id, customer_id, amount, status)
101 1 500 delivered
102 1 1200 cancelled
103 3 800 delivered
Ravi has no orders. Meena has no city.
Those two facts answer most NULL and JOIN questions.IF I FREEZE ON A BASIC QUESTION
1. Breathe once.
2. Say: "Let me picture a small table for this."
3. Describe the table in one sentence.
4. Walk through what the query or formula does.
5. State the rule.
6. Add one edge case if I know it.
Never say "I know this, I just can't remember."
Show it with an example instead.
SECTION 05Habits that keep the basics ready under pressure
These habits make sure the fundamentals come out cleanly even when you are nervous.
- Assume no trick — Answer the plain version of a basic question first. Add depth only after the core answer is out.
- Explain to a beginner — Once a week, teach one basic concept to a friend who does not code. If they understand it, you truly know it.
- Revise basics last — In the final days before an interview, spend time on fundamentals rather than advanced topics. That is where most freezes happen.
- Write SQL clause order — Remember that SQL runs FROM, WHERE, GROUP BY, HAVING, SELECT, ORDER BY. It explains many 'why' questions about filters and aliases.
- Collect edge cases — Keep a short list of NULL, duplicate and join edge cases. Mentioning one turns a basic answer into a strong one.
SECTION 06Interview Q&A — Basic questions
Q1Data Analyst interview: What is the difference between WHERE and HAVING in SQL?
WHERE filters individual rows before grouping, while HAVING filters groups after aggregation. For example, WHERE amount > 500 keeps only large orders, while GROUP BY city HAVING SUM(amount) > 100000 keeps only cities with large total sales. Both can be used in the same query.
Q2What is the difference between COUNT(*) and COUNT(column)?
COUNT(*) counts all rows, including those with NULLs. COUNT(column) counts only rows where that column is not NULL. In a table of three customers where one has no email, COUNT(*) returns 3 and COUNT(email) returns 2.
Q3Why does a LEFT JOIN sometimes behave like an INNER JOIN?
When you put a condition on the right table in the WHERE clause, rows with no match have NULL in those columns and get filtered out. To keep unmatched rows, move the condition into the ON clause of the LEFT JOIN.
Q4What is an absolute reference in Excel?
An absolute reference such as $B$1 stays fixed when a formula is copied to other cells. For example, if B1 holds a tax rate and you drag =A2*(1+$B$1) down a column, the price reference changes but the tax rate reference does not.
Q5In what order does SQL execute a query?
Logically, SQL processes FROM and JOINs first, then WHERE, GROUP BY, HAVING, SELECT, DISTINCT, ORDER BY and finally LIMIT. This explains why you usually cannot use a SELECT alias in WHERE, but can often use it in ORDER BY.
SECTION 07Test yourself — Basic questions quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
What basic SQL questions are asked in data analyst interviews?
Common ones include WHERE vs HAVING, types of joins, COUNT variants, handling NULLs, GROUP BY, DISTINCT, UNION vs UNION ALL, primary and foreign keys, and the logical order of SQL execution.
How do I stop freezing in interviews?
Prepare answers as small examples rather than memorised definitions, practise answering aloud, and use a recovery line such as 'let me picture a small table'. Revising basics shortly before the interview also helps.
Are Excel questions still asked for data analyst roles?
Yes, many interviews include questions on references, lookups, COUNTIFS or SUMIFS, pivot tables and charts. Excel is still widely used for quick analysis and reporting.
Is XLOOKUP better than VLOOKUP?
XLOOKUP is more flexible: it can look left, uses exact match by default and handles missing values neatly. VLOOKUP still works and is common in older files. INDEX with MATCH is a reliable option in older Excel versions.
What should I do if I forget a basic concept in an interview?
Stay calm, describe a small example, and reason through what should happen. If you are still unsure, say so honestly and explain how you would test it. Interviewers value clear reasoning over perfect recall.
Where can I practise Data Analyst interview answers with expert feedback?
Yes. Uncodemy's Data Analytics Training Course in Noida (classroom and online) includes live projects, one-to-one mock interviews and resume reviews, so you practise Data Analyst interview answers with trainer feedback before the real interview. You can book a free demo class from this page to see how the sessions work.
SECTION 09Related reads
Classroom & online · Noida
Make the basics automatic
Our Data Analytics Training Course builds strong SQL, Excel and statistics fundamentals before moving to Python and Power BI, with regular oral drills on core questions.
₹15,500 · full programme- SQL and Excel foundations
- Oral fundamentals drills
- Mock technical interviews
- Weekday & weekend batches