LeetCode 1179 Amazon 'Reformat Department Table' Interview SQL Question Detailed Explanation

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

Recursive cte instead of writing multiple case statements will work ??

nandanpanda
Автор

I was asked same question in interview and answered the same way.

Inte5rviewer asked what if there are more than 100 elements in values in month column how will you code in such situation

sandeeppatil
Автор

Why use MAX or SUM and not just the Case statement?
CASE WHEN month='Jan' THEN revenue END as Jan_Revenue

Hamster_Off_Wheel
welcome to shbcf.ru