LeetCode Medium 580 'Student Number in Departments' Twitter Interview SQL Question with 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
Рекомендации по теме
Комментарии
Автор

how about this
select d.name, coalesce(count(s.St_id), 0) as St_numbers
from
dept d left join students s
on d.id = s.dept_id
group by 1
order by 2 desc, 1 asc;

adityaanand