Uploaded December 2022 | Updated September 2026, 15 minutes ago
This video will walk you through the Spotify Days At Number One interview question and provide a SQL solution. We'll show you three simple steps to help you solve this advanced question. You will learn how to use advanced SQL clauses - over (partition by) clause, case expressions, aggregations and joins to solve this problem.
Go to the question through the link below and follow along with meπ
Link to the question: platform.stratascratch.com/coding/10173-days-at-number-one?code_type=1&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: (0:10 )
Exploring and understanding the dataset: (1:18)
Writing out the approach: (3:34ββ)
Coding the solution: (6:50)
Conclusion: (β10:40)
______________________________________________________________________
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
______________________________________________________________________
#StrataScratch #SpotifyInterviewQuestion #SQLInterviewQuestions #SQL
This video will walk you through the Spotify Days At Number One interview question and provide a SQL solution. We'll show you three simple steps to help you solve this advanced question. You will learn how to use advanced SQL clauses - over (partition by) clause, case expressions, aggregations and joins to solve this problem.
Go to the question through the link below and follow along with meπ
Link to the question: platform.stratascratch.com/coding/10173-days-at-number-one?code_type=1&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: (0:10 )
Exploring and understanding the dataset: (1:18)
Writing out the approach: (3:34ββ)
Coding the solution: (6:50)
Conclusion: (β10:40)
______________________________________________________________________
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
______________________________________________________________________
#StrataScratch #SpotifyInterviewQuestion #SQLInterviewQuestions #SQL




![Meta Product Families: head() Function to Explore the Data [Part 1]
If youre looking for help working with a dataset, then this video is for you! Well be using the head() function to explore the data in the Meta Product Families interview question, so that you can find out any missing values.
Part 2: https://www.youtube.com/shorts/yoUO84tOH3c
Go to the question through the link below and follow along with meπ
Link to the question: https://platform.stratascratch.com/coding/2123-product-families?code_type=1&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
π Watch the full video: https://youtu.be/RmMuS5iiviI
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Playlist for data science interview tips: https://bit.ly/2G5hNoJ
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
About The Platform:
Im using StrataScratch (https://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 https://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
#DataAnalytics #PythonInterviewQuestions #Stratascratch Meta Product Families: head() Function to Explore the Data [Part 1]](https://i.ytimg.com/vi/9quwCoQ6CoU/mqdefault.jpg)

![Python Pandas: Understanding Percentage Ranking Method
Learn how to obtain percentage rankings in Python pandas in this video. Discover how percentile rankings are calculated and understand their significance in measuring an individuals performance or status relative to the rest of the group.
Watch the full tutorial:
π Data Ranking: Python Pandas and SQL Equivalents [Part 2]: https://youtu.be/Cg66PLiW9L0
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Playlist for data science interview tips: https://bit.ly/2G5hNoJ
π Playlist for data science projects: https://bit.ly/StrataScratchProjectsYouTube
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+shorts+python+sql+ranking
About The Platform:
Im using StrataScratch (https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+shorts+python+sql+ranking), 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 https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+shorts+python+sql+ranking. 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
#pandaspythontutorial #pythondatascience #sqlrank Python Pandas: Understanding Percentage Ranking Method](https://i.ytimg.com/vi/A9QzeBFj5GY/mqdefault.jpg)

![SMOTE: Tackling Imbalanced Data in Machine Learning
In this video, we delve into the challenges of imbalanced data in machine learning. Discover effective solutions such as the Synthetic Minority Oversampling Technique (SMOTE) and supplying class weight information to the model during training.
Watch the full tutorial:
π Data Project: Analyzing Review Sentiment for Accurate Ratings [Part 1]: https://youtu.be/Qh9ajFNeIEc
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Playlist for data science interview tips: https://bit.ly/2G5hNoJ
π Playlist for data science projects: https://bit.ly/StrataScratchProjectsYouTube
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?code_type=1&utm_source=youtube&utm_medium=click&utm_campaign=YT+rotten+tomatoes+shorts+s2+p1
About The Platform:
StrataScratch (https://platform.stratascratch.com/coding?code_type=1&utm_source=youtube&utm_medium=click&utm_campaign=YT+rotten+tomatoes+shorts+s2+p1) is 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 https://platform.stratascratch.com/coding?code_type=1&utm_source=youtube&utm_medium=click&utm_campaign=YT+rotten+tomatoes+shorts+s2+p1. All questions are free and you can even execute SQL and Python code in the IDE. Still, if you want to check out the solutions from other users or from the StrataScratch team, 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 us at team@stratascratch.com
#datascienceproject #datascience #dataanalytics SMOTE: Tackling Imbalanced Data in Machine Learning](https://i.ytimg.com/vi/AuNuF7lCI8w/mqdefault.jpg)

