YELP SQL Data Science Interview Questions | Common Coding Question (Mock Interview Walkthrough)

Опубликовано: 17 Февраль 2025
на канале: StrataScratch
3,582
56

This SQL data science interview question was asked by Yelp. 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 question: https://platform.stratascratch.com/co...

The SQL solution itself is easy to implement but there’s a tricky assumption most people get wrong. Can you spot it? Usually when trying to find the top result of something, most people will end their SQL solution with an ORDER BY and LIMIT 1 to get the top result. But there is an edge case where the top result are actually tied so there are many “top results”. A LIMIT 1 would not work in this case and an INNER JOIN is required to get to the right solution. This question covers concepts that are commonly found in data science interviews at Yelp, Facebook, and Google.
______________________________________________________________________

This series is for both beginner and intermediate data scientists and analysts interested in improving their technical interviewing skills. These are real data science interview questions. For some background context and an intro about what this series is about: https://bit.ly/36kKbxG

👉 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/co...

_____________________________________________________________________
Timestamps:

Interview Question: (0:00)
Exploring the Data: (0:15)
Assumptions and Tricky Edge Case: (1:00)
Developing the Solution Framework: (1:28)
SUBQUERY - SQL Query to Identify Max Cool Votes: (2:37)
INNER JOIN to Filter Max Cool Votes: (3:01)

______________________________________________________________________
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 https://platform.stratascratch.com/co.... 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 [email protected]
______________________________________________________________________