TGViewer
Coding Interview Resources Coding Interview Resources @crackingthecodinginterview ยท 52.2K subscribers
Post #3056 983
๐ŸŽฏ 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 execution 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 execution 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.

๐Ÿš€ Double Tap โค๏ธ For More
  • โค 3
More from @crackingthecodinginterview
  1. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  2. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  3. Sep 29, 2026โœ… Daily Coding Habits That Make You a Better Developer ๐Ÿง ๐Ÿ’ปโœจ 1๏ธโƒฃ Code Every Day (Even 30 Mโ€ฆ
  4. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
  5. Sep 28, 2026Hereโ€™s a DSA problem-solving cheat sheet that will help you solve 90โ€“95% of questions thatโ€ฆ
  6. Sep 28, 2026๐ŸŽ“ ๐—›๐—”๐—ฅ๐—ฉ๐—”๐—ฅ๐—— ๐—จ๐—ก๐—œ๐—ฉ๐—˜๐—ฅ๐—ฆ๐—œ๐—ง๐—ฌ ๐—™๐—ฅ๐—˜๐—˜ ๐—ข๐—ก๐—Ÿ๐—œ๐—ก๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐Ÿ˜ Dreaming ofโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’