Uploaded December 2020 | Updated September 2026, 7 hours ago
Let's cover 4 SQL window function interview questions asked on Airbnb, Netflix, Twitter, and Uber data science interviews. I cover the questions and how to solve them, and exactly what the functions are doing to the data.
Link to questions:
Aggregate Functions -- Uber: platform.stratascratch.com/coding/10302-distance-per-dollar?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
Ranking -- Twitter: platform.stratascratch.com/coding/9898-unique-salaries?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
NTILE() -- Netflix: platform.stratascratch.com/coding/10303-top-percentile-fraud?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
LEAD/LAG -- Airbnb: platform.stratascratch.com/coding/9637-growth-of-airbnb?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
______________________________________________________________________
This series is for both beginner and intermediate data scientists and analysts interested in learning how to solve common data science interview questions in SQL.
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π 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)
Aggregate Functions: (1:03)
Rankings(): (7:35)
Ntile(): (11:27)
Lag/Lead: (16:00)
Conclusion: (21:05)
______________________________________________________________________
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
Let's cover 4 SQL window function interview questions asked on Airbnb, Netflix, Twitter, and Uber data science interviews. I cover the questions and how to solve them, and exactly what the functions are doing to the data.
Link to questions:
Aggregate Functions -- Uber: platform.stratascratch.com/coding/10302-distance-per-dollar?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
Ranking -- Twitter: platform.stratascratch.com/coding/9898-unique-salaries?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
NTILE() -- Netflix: platform.stratascratch.com/coding/10303-top-percentile-fraud?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
LEAD/LAG -- Airbnb: platform.stratascratch.com/coding/9637-growth-of-airbnb?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
______________________________________________________________________
This series is for both beginner and intermediate data scientists and analysts interested in learning how to solve common data science interview questions in SQL.
π Subscribe to my channel: bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: bit.ly/3jifw81
π 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)
Aggregate Functions: (1:03)
Rankings(): (7:35)
Ntile(): (11:27)
Lag/Lead: (16:00)
Conclusion: (21:05)
______________________________________________________________________
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

![Facebooks Most Common Data Science SQL Interview Question [2021 Interview Question and Answer]
This is the most common data science interview question from Facebook. Itβs the most commonly tested concept on Facebooks coding interviews, especially in the beginning rounds.
In the previous video, we talked about 5 coding concepts that companies test for in 2021 so now well actually solve the 5 questions that test your understanding of these concepts. If you havent watched that video, heres the link to the video - https://bit.ly/3ek04by
Link to the question: https://platform.stratascratch.com/coding/2005-share-of-active-users?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
π 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ββ
Timeline:
Intro: (0:00ββ)
Interview Question: (0:50ββ)
Solution Approach: (1:50ββ)
Explore data: (2:28ββ)
Identify the required columns: (3:40ββ)
Visualize output: (4:14ββ)
Code in increments: (5:14ββ)
Conclusion: (10:16ββ)
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
#SQLβ #DataScienceInterview Facebooks Most Common Data Science SQL Interview Question [2021 Interview Question and Answer]](https://i.ytimg.com/vi/XRwxYOhHdE8/mqdefault.jpg)




![Exploratory Data Analysis For An Uber Python Data Science Project [Part 1]
In this video, well take you through a data project from Uber called Partner Business Modeling. Well delve into the details of exploring and cleaning up the dataset. Well use popular Python libraries such as Pandas, NumPy, and Matplotlib to manipulate, analyze and visualize the data. And showcase how custom functions can be used to create bar graphs and how to clean and change rows using the apply method.
Watch the next parts:
π Part 2: Using Python Pandas To Answer Business Questions For An Uber Data Science Project: https://www.youtube.com/watch?v Lzi4Qoy2v4
π Part 3: Data Science and Uber: Solving Partner Business Modeling using Python: https://youtu.be/xlppLbv7nb0
π§βπ» Go to the question through the link below and follow along with us:
https://platform.stratascratch.com/data-projects/partner-business-modeling/?utm_source=youtube&utm_medium=click&utm_campaign=YT+data+preparation+uber+project
π 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+data+preparation+uber+project
Timeline:
Intro: (0:00βββ)
Data exploration and cleaning: (0:37)
Coding the solution: (6:49ββ)
Conclusion: (β8:57)
About The Platform:
Im using StrataScratch (https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+data+preparation+uber+project), 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+data+preparation+uber+project. 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
#PythonDataProject #PythonInterviewQuestion Exploratory Data Analysis For An Uber Python Data Science Project [Part 1]](https://i.ytimg.com/vi/ZOthTms86Bw/mqdefault.jpg)



