LeetCode Interview SQL Question with Detailed Explanation | Practice SQL | LeetCode 1050

preview_player
Показать описание
Previous Video: LeetCode 627 Swap Salary

In this video I solve and explain a 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 is about finding actors and directors who cooperated atleast 3 times and also includes points to keep in mind to develop SQL queries. You will also learn about basic SQL clauses and difference between WHERE and HAVING clause.

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

You are doing a Great Work! Thanks a Lot! I could solve this myself.

chakravarty-with-a-v
Автор

nicely explained, was finding this one hard to solve😅

RitzFootball
Автор

Can we use this

Select * from table where actorid = director id

vijayshree
Автор

Sir, i used the below code and it ran, is it right
select actor_id, director_id
from ActorDirector
group by actor_id
having actor_id = director_id;

anuragbond
Автор

Ek hindi channel bhi koi bata doh leetcode sql k liye

VikashKumar-snzj
Автор

can you solve this without using timestamp column?

bakeshonai
Автор

select actor_id, director_id
from
actordirector
group by actor_id, director_id
having cnt_dir>=3

imdeepu
Автор

my try: SELECT actor_id, director_id
FROM ActorDirector
GROUP BY actor_id, director_id
HAVING COUNT(*) >= 3;

keerthikakj