No video

LeetCode Medium 1164 Amazon Interview SQL Question with Detailed Explanation

  Рет қаралды 6,467

Everyday Data Science

Everyday Data Science

2 жыл бұрын

Question: leetcode.com/p...
In this video I solve and explain a medium difficulty leetcode SQL question using MySQL query. This question has been asked in Apple, Facebook, Amazon, Google, Adobe, Microsoft, Adobe interviews or what we popularly call FAANG interviews.
I explain the related concept as well. This question includes points to keep in mind to develop SQL queries.
LeetCode is the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews.
If you found this helpful, Like and Subscribe to the channel for more content.
#LeetCodeSQL #FAANG #SQLinterviewQuestions

Пікірлер: 18
@saisushanthdurvasulabitsian
@saisushanthdurvasulabitsian Жыл бұрын
thank you so much , alternate way: with cte as ( select product_id , first_value(new_price) over (partition by product_id order by change_date desc) as price from Products where change_date
@nomalware2811
@nomalware2811 Ай бұрын
same I generated...
@turyaganguly447
@turyaganguly447 Жыл бұрын
Your process of explaining is so good. Thanks for your videos. They are really helpful.
@sivasrimakurthi206
@sivasrimakurthi206 Жыл бұрын
@everyday Data Sceince - what an eye you got, everything you see in DATA lens .. loved the way, you conquer the problem statement.
@EverydayDataScience
@EverydayDataScience Жыл бұрын
Glad that you are enjoying the series so far 😊
@sivasrimakurthi206
@sivasrimakurthi206 Жыл бұрын
@@EverydayDataScience yes, I am watching the entire series. It is pure fun, going over each and every video and learning new stuff in each query, that is what amazed me how you have designed this series. Thanks for well thought series.
@sohailkan17
@sohailkan17 Жыл бұрын
I was stuck in joining the tables the cte with the Products table for id#3 but could not successfully retrieve the output data Thankyou i got to learn an alternative of join UNION set operators
@anasalnaggar4838
@anasalnaggar4838 8 ай бұрын
thanks man , ur explanation is very good
@changkris2844
@changkris2844 4 ай бұрын
Thanks bro, really helpful
@EverydayDataScience
@EverydayDataScience 4 ай бұрын
Glad that you found the video useful 😊
@sauravchandra10
@sauravchandra10 9 ай бұрын
My approach: WITH cte2 AS( SELECT *, RANK() OVER(PARTITION BY product_id ORDER BY change_date DESC) AS change_no FROM Products HAVING change_date
@vbmudalige
@vbmudalige 7 ай бұрын
My solution: with cte as ( select product_id, last_value(new_price) over( partition by product_id order by change_date rows between current row and unbounded following ) as price from Products where change_date
@jatinyadav8960
@jatinyadav8960 Жыл бұрын
great
@shubhammishra2225
@shubhammishra2225 10 ай бұрын
Alternate way --- select product_id, max(case when change_date
@metricsview33
@metricsview33 7 ай бұрын
what if it is not neccessary that price will increase only with time, it can decrease too in big data, then max() will not work
@rupdeepthey
@rupdeepthey Жыл бұрын
Will this work if price of product id is changed more than once after the specified date? Won't it print duplicate ids in that case?
@saurabhmahajan3385
@saurabhmahajan3385 Жыл бұрын
Hi Brother, Hope you doing good. Can you please solve 601. Human Traffic of Stadium? Thanks in Advance, Saurabh 😊
@nomalware2811
@nomalware2811 Ай бұрын
WITH CTE AS (SELECT DISTINCT product_id, FIRST_VALUE(new_price) OVER(PARTITION BY product_id ORDER BY change_date DESC) price FROM Products WHERE change_date
LeetCode Medium 1045 Amazon Interview SQL Question with Detailed Explanation
7:01
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 40 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 30 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 3,1 МЛН
LeetCode Medium 1193 Interview SQL Question with Detailed Explanation
9:00
Everyday Data Science
Рет қаралды 4,1 М.
LeetCode Medium 1934 Interview SQL Question with Detailed Explanation
11:47
Everyday Data Science
Рет қаралды 6 М.
LeetCode 1211 Interview SQL Question with Detailed Explanation | Practice SQL
13:28
LeetCode Medium 1341 "Movie Rating" SAP Interview SQL Question with Explanation
12:04