No video

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

  Рет қаралды 4,573

Everyday Data Science

Everyday Data Science

2 жыл бұрын

Question: leetcode.com/p...
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

Пікірлер: 12
@neerajkumawat3386
@neerajkumawat3386 Ай бұрын
select name from salesperson where sales_id not in ( select distinct sales_id from orders where com_id = (select com_id from company where name = "RED") )
@parthbihani7360
@parthbihani7360 27 күн бұрын
why this is wrong select name from SalesPerson where sales_id NOT IN (select sales_id from orders where com_id = 1)
@sypark102
@sypark102 Жыл бұрын
Thank you :)
@archnabhalerao7001
@archnabhalerao7001 9 ай бұрын
We can also write the query Instead of doing all that kind of stuff as -->select name from SalesPerson where sales_id not in( select sales_id from Orders where com_id=(select com_id from Company where name like 'RED'))
@user-rp7df2on1w
@user-rp7df2on1w 11 ай бұрын
select sum(orangecount) orangecount , sum(applecount) applecount from (select chestid,orangecount,applecount from box union select chestid,orangecount,applecount from chest) a
@pritamm6386
@pritamm6386 Жыл бұрын
why we are not getting right answer when we neglect all name = 'Red' in cte and then compare with salesperson table?
@PIYUSH-lz1zq
@PIYUSH-lz1zq 2 жыл бұрын
sir , i often get confused to take which table on left while doing left join . initially i was taking company on left side cause based on company we r filtering !! please on it.
@PIYUSH-lz1zq
@PIYUSH-lz1zq 2 жыл бұрын
Please clear this doubt
@kshitijpandey78
@kshitijpandey78 Жыл бұрын
the left join is applied on the table from where we have to check the condition .. Here we take company table as the left join as we have to check the name is Not red.
@seematiwari1441
@seematiwari1441 Жыл бұрын
This solution is not working in my Leetcode.
@chandravideo
@chandravideo 7 ай бұрын
yes they have added test case in which there a null value in not in which is falling
@mlvprasadofficial
@mlvprasadofficial 2 жыл бұрын
71
LeetCode 1251 Interview SQL Question with Detailed Explanation | Practice SQL
17:11
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 18 МЛН
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 54 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 34 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 62 МЛН
LeetCode 601: Human Traffic of Stadium [SQL]
10:57
Frederik Müller
Рет қаралды 7 М.
LeetCode Medium 626 Amazon Interview SQL Question with Detailed Explanation
8:38
LeetCode Medium 1398 Amazon Interview SQL Question with Detailed Explanation
13:56
LeetCode 1280 Interview SQL Question with Detailed Explanation | Practice SQL
20:13
SQL Interview Problem asked during Amazon Interview
15:15
techTFQ
Рет қаралды 22 М.
SQL Joins: Difference Between Inner/Left/Right/Outer Joins
10:52
262. Trips and Users | Leetcode SQL Hard
14:02
Tech Timeout
Рет қаралды 477
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 18 МЛН