Uploaded September 2022 | Updated September 2026, 3 days ago
In this video, we look closely at a real-life data-science interview question from the Noom company. We will go through the questions in more detail and focus exclusively on solutions from a SQL perspective. It is an advanced level question, so you need knowledge of technical concepts such as joining tables, grouping data, running sub-queries, and performing mathematical operations on the data. We hope that using hints from our approach helped you get the desired result.
Link to the question to follow along with me: platform.stratascratch.com/coding/2033-find-the-most-profitable-location?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
______________________________________________________________________
Timestamps:
Intro: (0:00βββ)
Interview Question: (0:37)
Framework to solve the problem: (1:00βββ)
Understand your data: (2:00)
Formulate your approach: (4:39ββ)
Code Execution: (8:37)
Conclusion: (11:50βββ)
______________________________________________________________________
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
______________________________________________________________________
#SQLtraining
In this video, we look closely at a real-life data-science interview question from the Noom company. We will go through the questions in more detail and focus exclusively on solutions from a SQL perspective. It is an advanced level question, so you need knowledge of technical concepts such as joining tables, grouping data, running sub-queries, and performing mathematical operations on the data. We hope that using hints from our approach helped you get the desired result.
Link to the question to follow along with me: platform.stratascratch.com/coding/2033-find-the-most-profitable-location?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
______________________________________________________________________
Timestamps:
Intro: (0:00βββ)
Interview Question: (0:37)
Framework to solve the problem: (1:00βββ)
Understand your data: (2:00)
Formulate your approach: (4:39ββ)
Code Execution: (8:37)
Conclusion: (11:50βββ)
______________________________________________________________________
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
______________________________________________________________________
#SQLtraining


![Importing a Pandas Dataframe to a Database in Python [For Your Data Science Project]
Today weβre going to talk about how to upload your data from a pandas dataframe to a database in the cloud. This is a continuation of building the one and only data science project you need (https://www.youtube.com/watch?v=c4Af2FcgamA) where I introduced the infrastructure you can build for data science projects. The first part is to collect data from an API as your data source. I walked you through how to do that in this video (https://www.youtube.com/watch?v=fklHBWow8vE). Now that you have the data from the API saved in a pandas dataframe, we need to get it into a database table.
Link to Github repo: https://github.com/Strata-Scratch/api-youtube
π 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ββββ)
Solve for memory and performance issues: (0:45ββββ)
Have different version of the data: (1:02ββββ)
Create your database on the cloud: (2:27ββββ)
Create a Google Colab or Jupyter Notebook: (3:15ββββ)
Connecting to your database: (5:34ββββ)
Create your DB table: (8:02ββββ)
Loading your data into the DB table: (11:16ββββ)
Check to see if video exists: (13:10ββββ)
Updating the table: (16:15ββββ)
Inserting new videos to table: (19:58ββββ)
Testing: (28:54ββββ)
Conclusion: (31:55ββββ)
If you want data science 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 nate@stratascratch.com
#PandasDataframe #datascience Importing a Pandas Dataframe to a Database in Python [For Your Data Science Project]](https://i.ytimg.com/vi/77IVf0zgmwI/mqdefault.jpg)







