How to use SQL window functions: RANK vs DENSE_RANK in Data Science Interviews @stratascratch
How to use SQL window functions: RANK vs DENSE_RANK in Data Science Interviews  @stratascratch
Uploaded March 2022 | Updated September 2026, 1 hour ago
This video covers two of the most common SQL Rank Functions, their differences, and how to use them. We’ll take the following two example questions from data science interviews which shows the crucial reasons to use RANK and DENSE_RANK SQL window functions.


Link to the questions:
1. platform.stratascratch.com/coding/10148-find-the-top-10-cities-with-the-most-5-star-businesses?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
2. platform.stratascratch.com/coding/10159-ranking-most-active-guests?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________

πŸ‘‰ Subscribe to my channel: bit.ly/2GsFxmA
πŸ‘‰ Playlist for more data science interview questions and answers: bit.ly/3jifw81
πŸ‘‰ Playlist for data science interview tips: bit.ly/2G5hNoJ
πŸ‘‰ Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________

Timeline:

Intro: (0:00​​​)
Interview Question #1: (0:25)
Interview Question #2: (6:24)
Conclusion: (9:02​​)
______________________________________________________________________

About The Platform:

I'm using StrataScratch (platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link), a platform that allows you to practice real data science interview questions. There are over 1000+ interview questions that cover coding (SQL and python), statistics, probability, product sense, and business cases.

So, if you want more interview practice with real data science interview questions, visit platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link. All questions are free and you can even execute SQL and python code in the IDE, but if you want to check out the solutions from me or from other users, you can use ss15 for a 15% discount on the premium plans.

______________________________________________________________________

Contact:

If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
______________________________________________________________________
How to use SQL window functions: RANK vs DENSE_RANK in Data Science InterviewsSolving a Tricky Google SQL Question with String ManipulationMost Common Coding Mistakes on Data Science InterviewsSQL Window Functions In a Data Science Interview Question by Airbnb in 2021Data Ranking: Python Pandas and SQL Equivalents [Part 2]The #1 Way to Bore an Interviewer to DeathImpress Recruiters With These Data Science ProjectsHiring Biases EXPOSED in Data Science RolesDoorDash Data Science SQL Interview Question WalkthroughSQL Self Joins Explained | Why Most Developers Get This Wrong3 Popular Machine Learning Algorithms In 5 Min8 worst data scientists to work with
StrataScratch |

How to use SQL window functions: RANK vs DENSE_RANK in Data Science Interviews

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER