TGViewer
Data Analyst Interview Resources Data Analyst Interview Resources @dataanalystinterview ยท 52.6K subscribers
Post #2187 1.66K
๐Ÿš€ 5 Frequently Asked SQL Interview Q&A ๐Ÿ’ป๐Ÿ“Š

1๏ธโƒฃ Difference between RANK() and DENSE_RANK()?

โœ… RANK() skips numbers after ties
โœ… DENSE_RANK() does not skip numbers

Example: 95, 95, 90
RANK() โ†’ 1,1,3
DENSE_RANK() โ†’ 1,1,2

โ€”

2๏ธโƒฃ What is a Window Function?

๐Ÿ“ˆ Performs calculations across rows without grouping them into one row.

Examples:
โœ”๏ธ ROW_NUMBER()
โœ”๏ธ RANK()
โœ”๏ธ LEAD()
โœ”๏ธ LAG()

โ€”

3๏ธโƒฃ ROW_NUMBER() vs RANK()?

๐Ÿ”ข ROW_NUMBER() gives unique numbers to every row.
๐Ÿ”ข RANK() gives same rank to duplicate values.

โ€”

4๏ธโƒฃ What is a Stored Procedure?

โš™๏ธ A saved SQL query that can be reused anytime.

Benefits:
โœ… Reusable
โœ… Faster execution
โœ… Better security

โ€”

5๏ธโƒฃ WHERE vs GROUP BY?

๐Ÿ“Œ WHERE filters rows
๐Ÿ“Œ GROUP BY groups rows for aggregation

๐Ÿ”ฅ React for more interview questions โ™ฅ๏ธ
  • โค 6
More from @dataanalystinterview
  1. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  2. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  3. Oct 1, 2026๐Ÿ”ฅ Top 10 Theoretical Interview Questions Every Data Analyst Must Prepare ๐Ÿ“Š Data Analystโ€ฆ
  4. Sep 29, 2026๐Ÿš€ Excel Formulas Fundamentals โ€” Part 10 ๐Ÿ“Š Conditional Functions (SUMIF, SUMIFS, COUNTIF,โ€ฆ
  5. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
  6. Sep 29, 2026๐Ÿ“Š Tableau Learning Roadmap โ€” Part 2 Connecting to Data Before creating visualizations inโ€ฆ
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 โ†’