LeetCode 1777 Amazon 'Product's Price for Each Store' 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
Рекомендации по теме
Комментарии
Автор

Here, MAX is used because:
we get [0, 95, null, null] max of this is 95.
Similarly, the rest.

toyszone
Автор

Can you help me understand why we took max here? we're only comparing the store1 which has only 1 value with the appropriate product_id. I didn't understood why we'll get the scenario of 95, null, null?

raghavarahulkalavala