SQL Window Functions on Data Science Interviews in 2021 | Asked By Airbnb, Netflix, Twitter, Uber

preview_player
Показать описание
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:

______________________________________________________________________

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.

______________________________________________________________________
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.

______________________________________________________________________
Contact:

If you have any questions, comments, or feedback, please leave them here!

#sql #datascience #sqlinterviews
Рекомендации по теме
Комментарии
Автор

LOVE the way you chart out your approach before you start coding. I'm adopting that stat. I learned so much from this video and then discovered you have a playlist of similar videos. Feels like Christmas.

AnnieCushing
Автор

Huge thumbs up for being so crisp and concise, which imho projects a more positive character than content with fluff and frills.

davidallantodd
Автор

Loving the way you lay out the problem and break it down to bits. That "VISION" is gold. Thank you for every second of your time you spend educating people.

alinazem
Автор

This is THE ONE video that I review before every single one of my interviews. Thanks for the video!

tamago_roe
Автор

Dude that was so helpful! You’re a great teacher as well

tarekelias
Автор

I love how you make every question so easy to understand after you break it down! Thank you for sharing your knowledge!

glin
Автор

Amazing video man, exactly what i was looking for

bananaboydan
Автор

This video has become my go-to refresher before any interview

stutidey
Автор

Loved the problems curated, and the way you explained the function with a problem to practice it upon! Awesome work!

luckykukreja
Автор

Really awesome mate. I subscribed and happy to know if you have a awesome courses you teach which is as unique and productive as these. Thank you

granand
Автор

Thank you for posting this video along with the website where we can practice the queries. Very well explained!
For the ranking part of the video I was able to get the same result with only one derived table instead of two and no grouping clause. I think this query is a bit easier to digest:

select distinct department, salary, ranking
from
(
select *, dense_rank() over( partition by department order by salary desc ) as Ranking
from twitter_employee
) DerivedTable1
where ranking < 4
order by department, salary desc

Also, for the Percentile Fraud section, your query returns 6 rows instead of 5 for Texas. I was able to fix this problem by incrementing Ntile from 100 to 101

hugomichaelnunezmejia
Автор

Excellent way of explanation. thank you for the video.

RaviTheVlogger
Автор

Really loved your video! Appreciate all the effort you put in it. From good selection on question to very good explanation.

abhishekarora
Автор

Great content I love your videos and clarity of speech!
Thanks

BellTollsForThee
Автор

Thanks a lot for creating this awesome channel, its amazingly well organized and makes things easy.

swapnilrana
Автор

Thank you so much. Your videos are really informative and helpful. Much appreciated 👍

shalinigarg
Автор

Love this tutorial. It's very easy to grasp everything.

kshitijdhakal
Автор

You are really good at this, best explained!!!

sugandhtiwari
Автор

Really awesome to clarify the concepts and their usage, loved it

niveditakumari
Автор

Awesome content, well presented. Thank you so much!

warnercooler