LeetCode 2072 Amazon Interview SQL Question with Detailed Explanation | Practice SQL

preview_player
Показать описание

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

SELECT
CASE
WHEN (SELECT SUM(CASE WHEN score >= 90 THEN 1 ELSE 0 END) FROM NewYork) > (SELECT SUM(CASE WHEN score >= 90 THEN 1 ELSE 0 END) FROM California) THEN 'New York University'
WHEN (SELECT SUM(CASE WHEN score >= 90 THEN 1 ELSE 0 END) FROM NewYork) < (SELECT SUM(CASE WHEN score >= 90 THEN 1 ELSE 0 END) FROM California) THEN 'California University'
ELSE 'No Winner'
END AS result;

mickyman