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

can't we use Group by instead of window function brother?

MsPrakhar
Автор

with cte as (select customer_id, order_id, order_date,
RANK() OVER(partition by customer_id order by order_date desc) as rnk from ordors),
cte2 as(select customer_id, order_id, order_date from cte where rnk<4)
select name, cte2.customer_id, cte2.order_id, cte2.order_date from costomer join cte2 on
order by name;

maheshwaroli
join shbcf.ru