LeetCode Medium 1867 Interview SQL Question with Detailed Explanation

preview_player
Показать описание

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
Рекомендации по теме
Комментарии
Автор

@everyday Data Science - I am getting addicted to your videos ;-) it is fun to follow the lessons, you are teaching the techniques of SQL piece by piece, and the examples you choose are apt and real time scenarios. Thanks a lot for designing and delivering such a great content 🤩

sivasrimakurthi
Автор

Hi, could you please explain why we don't use window function in this problem?

rinkali
Автор

i found this question lacking some testcases like if we have same product in same order id then it gives wrong answer

Mr_DT
Автор

create temp table Order_detaill1as
(select order_id, avg(Quantity) as avg1from Orderdetails group by 1) ;
select distinct orderid from Orderdetails where quantity >(select max(avg1) from Order_detaill1)

ujjwalvarshney