LeetCode Medium 570 "Managers with 5 Direct Reports" Amazon Interview SQL Question With Explanation

  Рет қаралды 4,640

Everyday Data Science

Everyday Data Science

Жыл бұрын

Question: leetcode.com/problems/manager...
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

Пікірлер: 7
@WanderWarick
@WanderWarick 11 күн бұрын
with cte as (select managerid from employee group by managerid having count(id)>=5) select name from employee as e join cte as c on c.managerid = e.id
@gunjanpatil8191
@gunjanpatil8191 Жыл бұрын
select m.name from employee as e inner join employee as m on e.managerid = m.id group by e.managerid having count (e.id) >=5
@PerfectHilton
@PerfectHilton 9 ай бұрын
BRO!!!! thank you
@EverydayDataScience
@EverydayDataScience 9 ай бұрын
Glad that you liked the video 😊
@ranjan_akash
@ranjan_akash Жыл бұрын
❤❤❤
@chiragshetty3079
@chiragshetty3079 5 ай бұрын
with cte as(select managerId,count(1) as direct_reports from Employee group by managerId having count(1)>=5 ) select E.name from Employee E inner join cte C on C.managerId=E.id;
@Lucifer-wd7gh
@Lucifer-wd7gh 3 ай бұрын
select m.name from employee as e inner join employee as m on e.managerid = m.id group by e.managerid having count(e.id) >=5;
LeetCode 570: Managers with at Least 5 Direct Reports [SQL]
6:46
Frederik Müller
Рет қаралды 6 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 147 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 80 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН
LeetCode 1581 Interview SQL Question with Detailed Explanation | Practice SQL
7:11
LeetCode 1211 Interview SQL Question with Detailed Explanation | Practice SQL
13:28
LeetCode Medium 1934 Interview SQL Question with Detailed Explanation
11:47
Everyday Data Science
Рет қаралды 6 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 147 МЛН