03/07/2026
*π― Advanced Data Analyst Mock Interview Questions (With Answers) π*
*π 1οΈβ£ A dashboard suddenly shows incorrect numbers. How would you troubleshoot it?*
*β
Strong Answer:*
βI would troubleshoot step-by-step:
1. Verify source data
2. Check recent ETL/data pipeline changes
3. Validate SQL queries and joins
4. Check filters and calculations in dashboard
5. Compare results with raw database values
This helps isolate whether the issue is from data ingestion, transformation, or visualization.β
*π§ 2οΈβ£ Difference between RANK(), DENSE_RANK(), and ROW_NUMBER()?*
*β
Answer:*
*ROW_NUMBER* β No duplicate rank, No skips rank
*RANK* β Yes duplicate rank, Yes skips rank
*DENSE_RANK* β Yes duplicate rank, No skips rank
*Example:*
SELECT salary,
RANK() OVER(ORDER BY salary DESC)
FROM employees;
*π 3οΈβ£ What is the difference between OLTP and OLAP?*
*β
Answer:*
*OLTP*
- Transactional systems
- Fast inserts/updates
- Normalized data
- Example: Banking app
*OLAP*
- Analytical systems
- Complex queries
- Denormalized data
- Example: Power BI dashboard
*π 4οΈβ£ How do you optimize a slow SQL query?*
*β
Strong Answer:*
βI would:
- Avoid `SELECT *`
- Use indexes properly
- Filter early with `WHERE`
- Avoid unnecessary joins
- Analyze ex*****on plan using `EXPLAIN`
- Use CTEs/window functions carefullyβ
*π§ 5οΈβ£ Explain Primary Key vs Foreign Key*
*β
Answer:*
- *Primary Key* uniquely identifies each row
- *Foreign Key* creates relationship between tables
*Example:*
`customer_id` in `customers` β Primary Key
`customer_id` in `orders` β Foreign Key
*π 6οΈβ£ What is data cleaning?*
*β
Answer:*
βData cleaning means handling:
- Missing values
- Duplicates
- Incorrect formats
- Inconsistent records
It improves data quality before analysis.β
*π 7οΈβ£ What are the most important SQL concepts for a data analyst?*
*β
Answer:*
- Joins
- Aggregations
- Window functions
- Subqueries & CTEs
- Date functions
- NULL handling
*π§ 8οΈβ£ Explain a situation where you used data to solve a business problem*
*β
Strong Answer:*
βI analyzed customer purchase patterns and identified products with low repeat sales. Based on the analysis, targeted campaigns were suggested, which improved customer retention.β
*π 9οΈβ£ Difference between UNION and UNION ALL*
*β
Answer:*
- *UNION* removes duplicates
- *UNION ALL* keeps duplicates and is faster
*π π How do you measure dashboard performance?*
*β
Answer:*
βI check:
- Query ex*****on time
- Dashboard load speed
- Number of visuals
- Data model optimization
- DAX/query efficiencyβ
*π§ 1οΈβ£1οΈβ£ What is cardinality in databases?*
*β
Answer:*
Cardinality defines relationship between tables:
- One-to-One
- One-to-Many
- Many-to-Many
*Example:* One customer β many orders.
*π 1οΈβ£2οΈβ£ Explain ETL Process*
*β
Answer:*
- *Extract* β collect data
- *Transform* β clean/process data
- *Load* β store into warehouse/database
*π 1οΈβ£3οΈβ£ What is the difference between a view and a table?*
*β
Answer:*
- *Table* stores physical data
- *View* is a virtual query result
*π§ 1οΈβ£4οΈβ£ How would you identify trends in sales data?*
*β
Strong Answer:*
βI would use:
- Time-series analysis
- Running totals
- Month-over-month growth
- Moving averages
- Visualization dashboardsβ
*π 1οΈβ£5οΈβ£ Explain Star Schema*
*β
Answer:*
Star schema contains:
- One fact table
- Multiple dimension tables
*Used heavily in:*
- Data warehouses
- Power BI models
*β Most Important Interview Advice*
Interviewers test:
- SQL logic
- Business understanding
- Communication skills
- Problem-solving approach not just syntax.