SQL Window Functions In a Data Science Interview Question by Airbnb in 2021 @stratascratch
SQL Window Functions In a Data Science Interview Question by Airbnb in 2021  @stratascratch
Uploaded December 2020 | Updated September 2026, 2 hours ago
SQL window functions are common data science and analytics coding interview questions. They also are used almost everyday at your day job as a data scientist/product analyst. In this video, I'll go over a SQL interview question that involves a window function to handle time series data. You definitely need to know how to handle time series data if you want to do analytics in today's market. There are just too many companies that want to know what you're doing, when you're doing it, and where you're at. I'm looking at your Facebook, Google, Airbnb, etc. This question comes from Airbnb if it isn't obvious from the thumbnail.

Follow along with me and try out this problem: platform.stratascratch.com/coding/9637-growth-of-airbnb?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link

______________________________________________________________________

πŸ‘‰ Subscribe to my channel: bit.ly/2GsFxmA
πŸ‘‰ Practice more real data science interview questions: platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
______________________________________________________________________
Timestamps:

Intro: (0:00)
Interview Question: (0:43)
Explore the Dataset: (1:40)
Solution Approach: (2:10)
Coding - Counting this year's host numbers: (4:05)
Coding - Explanation of the SQL Window Function LAG(): (5:55)
Coding - Applying growth rate formula: (7:56)
Outro: (9:24)

______________________________________________________________________
About The Platform:

I'm using StrataScratch, 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
______________________________________________________________________

#sql #datascience #sqlinterviews
SQL 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 withSQL Coding Interview Question Using A Window Function (PARTITION BY) | Data Science InterviewsGod-Tier Data Science Frameworks… or Total Flops? #coding #frameworks #technologyHow the YouTube Algorithm REALLY Works 2026
StrataScratch |

SQL Window Functions In a Data Science Interview Question by Airbnb in 2021

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER