Uploaded October 2020 | Updated September 2026, 24 minutes ago
This SQL data science interview question was asked by Microsoft. Iβll cover both the question and answer and give a detailed explanation of the approach. I walkthrough each step of my answer, assumptions, approach, and explain every line of code I write. This is literally how I would answer every data science interview question and prepare for every data science interview at FAANG companies and others.
Link to the question: platform.stratascratch.com/coding/10301-expensive-projects?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link (the question on the platform has been revised)
The question covers the basic concept of a SQL INNER JOIN and calculating a ratio in the SELECT clause. Technically, itβs an easy data science interview question to solve but understanding the assumptions to the questions to then select the right JOIN and ratio formula is what can make this interview questions difficult. Once you understand how to translate the business question to the technical implementation, this data science interview question becomes easy. This question covers concepts that are commonly found in data science interviews at Facebook and Google.
______________________________________________________________________
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. These are real data science interview questions. For some background context and an intro about what this series is about: bit.ly/36kKbxG
π 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
______________________________________________________________________
Timestamps:
Intro: (0:00)
Interview Question: (0:09)
Exploring The Data: (0:41)
Developing The Framework For The Solution: (1:14)
INNER JOIN The Tables: (3:08)
Calculating budget-to-employee Count Ratio: (3:45)
Finishing off with ORDER BY and LIMIT 5: (4:46)
______________________________________________________________________
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.
I created this platform because I wanted to build a resource to specifically help prepare data scientists for their technical interviews and to generally improve their analytical skills. Over my career as a data scientist, I never was able to find a dedicated platform for data science interview prep. LeetCode and HackerRank were the closest but these platforms specifically serve the computer developer community so their questions focus more on algorithms that working with data.
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
______________________________________________________________________
This SQL data science interview question was asked by Microsoft. Iβll cover both the question and answer and give a detailed explanation of the approach. I walkthrough each step of my answer, assumptions, approach, and explain every line of code I write. This is literally how I would answer every data science interview question and prepare for every data science interview at FAANG companies and others.
Link to the question: platform.stratascratch.com/coding/10301-expensive-projects?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link (the question on the platform has been revised)
The question covers the basic concept of a SQL INNER JOIN and calculating a ratio in the SELECT clause. Technically, itβs an easy data science interview question to solve but understanding the assumptions to the questions to then select the right JOIN and ratio formula is what can make this interview questions difficult. Once you understand how to translate the business question to the technical implementation, this data science interview question becomes easy. This question covers concepts that are commonly found in data science interviews at Facebook and Google.
______________________________________________________________________
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. These are real data science interview questions. For some background context and an intro about what this series is about: bit.ly/36kKbxG
π 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
______________________________________________________________________
Timestamps:
Intro: (0:00)
Interview Question: (0:09)
Exploring The Data: (0:41)
Developing The Framework For The Solution: (1:14)
INNER JOIN The Tables: (3:08)
Calculating budget-to-employee Count Ratio: (3:45)
Finishing off with ORDER BY and LIMIT 5: (4:46)
______________________________________________________________________
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.
I created this platform because I wanted to build a resource to specifically help prepare data scientists for their technical interviews and to generally improve their analytical skills. Over my career as a data scientist, I never was able to find a dedicated platform for data science interview prep. LeetCode and HackerRank were the closest but these platforms specifically serve the computer developer community so their questions focus more on algorithms that working with data.
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
______________________________________________________________________

![Top Data Science Interview Question And Answer Mistakes 2021 [Asked By Amazon]
Were going to cover the #1 most common mistake made on data science interviews. This mistake is made by both inexperienced and experience data science professionals; it happens both on interviews and in the work setting; and the mistake takes place when trying to solve the most common data science question. Lets cover it so that you dont make the same mistake.
Follow me interactively with the question here: https://platform.stratascratch.com/coding/9915-highest-cost-orders?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
Platforms I recommend to practice data science real scenarios:
- https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link (data science questions)
- https://leetcode.com (general database questions)
- https://datacamp.com (niche specific analytical skillsets)
π 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
Timestamps:
Intro: (0:00)
Description of the most common mistake: (0:34)
Coding example of mistake: (1:00)
How to properly solve the question: (4:50)
Reason why youre making these mistakes: (7:30)
Recommendations to improve: (8:10)
Contact:
If you have any questions, comments, or feedback, please leave them here!
Feel free to also email me at nathan@stratascratch.com
#datascience #sqlinterviews #codinginterviews Top Data Science Interview Question And Answer Mistakes 2021 [Asked By Amazon]](https://i.ytimg.com/vi/j8kGqAAIhxA/mqdefault.jpg)




![Mastering Movie Classification: Rotten Tomatoes Data Project [Part 2]
Welcome to the final episode of our Rotten Tomatoes Data Project series! In this video, we dive into the exciting world of movie rating predictions. Weve built a high-performance classification algorithm to determine whether a movie is labeled as rotten, fresh, or certified fresh. Join us as we explore the steps involved in predicting a movies status and discuss tips to enhance the performance of our model. From gathering and analyzing reviews to using random forest models, well guide you through the process. Dont forget to like, subscribe, and leave a comment with your thoughts and suggestions.
Go to the project through the link below and follow along with usπ
https://platform.stratascratch.com/data-projects/rotten-tomatoes-movies-rating-prediction?utm_source=youtube&utm_medium=click&utm_campaign=YT+rotten+tomatoes+s2+p2
Dont miss the previous part:
π 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+s2+p2
Timeline:
Intro: (0:00βββ)
Approach review: (0:44)
Predicting the Movies status: (2:25)
Body of Lies status prediction: (2:31)
Angel Heart status prediction: (4:09)
The Duchess status prediction: (5:37)
Improving the models performance: (6:27)
Take away: (7:13ββ)
About The Platform:
StrataScratch (https://platform.stratascratch.com/coding?code_type=1&utm_source=youtube&utm_medium=click&utm_campaign=YT+rotten+tomatoes+s2+p2) 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+s2+p2. 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 Mastering Movie Classification: Rotten Tomatoes Data Project [Part 2]](https://i.ytimg.com/vi/kcTrK4xxhPk/mqdefault.jpg)
![Text Analysis Made Easy: Tokenization for ML Algorithms
In this video, learn how to convert text reviews into a format suitable for machine learning algorithms through tokenization in natural language processing (NLP). Discover the process of transforming words into N-dimensional vectors and using these vector representations for data analysis.
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+shorts+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+shorts+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+shorts+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 Text Analysis Made Easy: Tokenization for ML Algorithms](https://i.ytimg.com/vi/l9DMUrJQAzY/mqdefault.jpg)
![Top Data Science Interview Questions in 2021 [3 concepts tested on all interviews]
Weβre going to go over the most common data science interview question for 2021 in this video. Really itβs 3 of the most common concepts tested on all coding interviews wrapped in one question. I see this question (or version of this question) on almost every interview Iβve been on or given. Follow along with me and see if you would be able to answer this question.
Link to the question: https://platform.stratascratch.com/coding/10300-premium-vs-freemium?python=&utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
This question is from Microsoft but versions of this has been found at other tech companies like Facebook, Google, Airbnb, Doordash, and others. The 3 concepts tested are SQL JOINs, CASE statements, and subqueries / common table expressions (SQL CTEs).
π Subscribe to my channel: https://bit.ly/2GsFxmA
π Playlist for more data science interview questions and answers: https://bit.ly/3jifw81
π Practice more real data science interview questions: https://platform.stratascratch.com/coding?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link
Timestamps:
Intro: (0:00)
3 common technical concepts: (0:47)
Interview question: (1:20)
1st concept - Advanced JOINs: (1:42)
2nd concept - CASE statements: (4:52)
3rd concept - Subquery / CTE:: (7:46)
Conclusion: (10:41)
About The Platform:
Im 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.
I created this platform because I wanted to build a resource to specifically help prepare data scientists for their technical interviews and to generally improve their analytical skills. Over my career as a data scientist, I never was able to find a dedicated platform for data science interview prep. LeetCode and HackerRank were the closest but these platforms specifically serve the computer developer community so their questions focus more on algorithms that working with data.
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 Top Data Science Interview Questions in 2021 [3 concepts tested on all interviews]](https://i.ytimg.com/vi/lG0PbUq4wkg/mqdefault.jpg)

![Collinearity and Removing Redundancies [DoorDash Data Science Project]
In this video, were going to learn how to use the corr() method to create data showing correlation. In the first part of this tutorial, we discussed how to prepare the data for modeling. In this part, well get acquainted with collinear features and the importance of removing redundancy in our data. By removing redundancy, well be able to improve our datas overall accuracy and make it easier to understand. This is an essential step in data analysis, and youll want to pay attention to it when working with data!
Watch our previous video:
π Part 1: Data Preparation for Modeling: https://youtu.be/Sf6jn8QZHhc
π§βπ» Go to the project through the link below and follow along with me: https://platform.stratascratch.com/data-projects/delivery-duration-prediction?utm_source=youtube&utm_medium=click&utm_campaign=YT+description+link&utm_content=collinearity+%26+removing+redundancies
π 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βββ)
Data project: (0:25 )
The approach: (1:51)
Creating a mask: (2:40)
Functions to test the correlations: (4:00)
Feature engineering: (7:15)
Conclusion: (β8:00)
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
#StrataScratch #DoordashDataProject #DataModeling Collinearity and Removing Redundancies [DoorDash Data Science Project]](https://i.ytimg.com/vi/m3zEV10qvE8/mqdefault.jpg)