Managers with at Least 5 Direct Reports | Leetcode 570 | Crack SQL Interviews in 50 Qs

  Рет қаралды 5,279

Learn With Chirag

Learn With Chirag

Күн бұрын

Пікірлер: 19
@learnwithchirag
@learnwithchirag 6 ай бұрын
Hey there! 👋 For more interesting content, tutorials, and updates, Feel free to connect with me on Instagram Handles :- @createwithchirag - instagram.com/createwithchirag/ @learn.with.chirag - instagram.com/learn.with.chirag/ LinkedIn: www.linkedin.com/in/chirag-sehgal-9200111b8/ Let's stay connected and keep the creativity flowing! 💡
@kaustubhrajput8199
@kaustubhrajput8199 6 ай бұрын
using sub query : select name from Employee where id in ( select distinct(managerId) from Employee group by managerId having count(managerId) >= 5)
@learnwithchirag
@learnwithchirag 6 ай бұрын
Yes , it can be done with this approach too ! Good work💯
@user-fw4kz3bb4g
@user-fw4kz3bb4g Ай бұрын
bohot sahi samjhaya h bhai, you deserve way more subs
@TalhaxD.
@TalhaxD. 2 ай бұрын
Try Select * name from Employee where name = "John" Your 5 testcases will be passed 😁 Thankyou for Great Solution
@akshanshsharma7415
@akshanshsharma7415 2 ай бұрын
IT SHOULD BE -> SELECT name from Employee where name = "John"
@TalhaxD.
@TalhaxD. 2 ай бұрын
@@akshanshsharma7415 yess, typing mistake
@nihalnandannayak8869
@nihalnandannayak8869 2 ай бұрын
# Code-1 select Employee.name from Employee where id IN (select e2.managerId from Employee e1 join Employee e2 using(id) group by e2.managerId having count(e2.managerId) >= 5) # Code-2(Without join) select Employee.name from Employee where id IN (select e2.managerId from Employee e2 group by e2.managerId having count(e2.managerId) >= 5)
@aarzoo2302
@aarzoo2302 4 ай бұрын
good explaination
@learnwithchirag
@learnwithchirag 4 ай бұрын
Glad it was helpful :)
@maddycoder1294
@maddycoder1294 8 ай бұрын
nice
@learnwithchirag
@learnwithchirag 8 ай бұрын
Thanks. Keep Learning 💯
@jahnavibhatt4657
@jahnavibhatt4657 9 ай бұрын
Superb👌
@learnwithchirag
@learnwithchirag 9 ай бұрын
Glad you liked it ! Keep Learning 💯
@apoorvpradhan5125
@apoorvpradhan5125 2 ай бұрын
Thank you bhaiya.
@learnwithchirag
@learnwithchirag 2 ай бұрын
Glad the content is helpful for you...Do share with your friends too 💯💐
@apoorvpradhan5125
@apoorvpradhan5125 2 ай бұрын
@@learnwithchirag Yess ! All my friends are now taking help of your videos only 😃
@pulkitjain5326
@pulkitjain5326 2 ай бұрын
Probably, the best explanations with ease on KZbin..🙌
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 1,6 МЛН
Managers with at Least 5 Direct Reports - Leetcode 570 | Week 4 | Qs 16
9:33
LeetCode 570: Managers with at Least 5 Direct Reports [SQL]
6:46
Frederik Müller
Рет қаралды 6 М.
LeetCode Medium 1934 Interview SQL Question with Detailed Explanation
11:47
Everyday Data Science
Рет қаралды 7 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН