LeetCode Medium 177 "Nth Highest Salary" Amazon Bloomberg Interview SQL Question With Explanation

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

Everyday Data Science

Everyday Data Science

Жыл бұрын

Question: leetcode.com/problems/nth-hig...
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

Пікірлер: 6
@jeroldmorphy3764
@jeroldmorphy3764 Жыл бұрын
man you are wonderful. You are the only I guy I have seen that writes FROM before SELECT, which is how it should be
@devsagar5812
@devsagar5812 2 ай бұрын
Alternative if interviewer ask to not to use windows functions: CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN SET N = N-1; RETURN ( # Write your MySQL query statement below. select distinct salary from Employee order by salary desc limit 1 offset N ); END
@tejaswaniguttula5961
@tejaswaniguttula5961 Ай бұрын
@devsagar can you tell how it works fine with this test case?? | id | salary | | -- | ------ | | 1 | 100 | | 2 | 100 |
@needoa487
@needoa487 Жыл бұрын
can you explain why u write in code where rnk = n
@minakshi_119
@minakshi_119 10 ай бұрын
n could be anything 1,2,3, and rnk is the name given to over(order by sal desc)
LeetCode Medium 178 Amazon Interview SQL Question with Detailed Explanation
6:13
Everyday Data Science
Рет қаралды 2,4 М.
SQL Interview Question - Find Nth Highest Salary | LeetCode
30:40
Sumit Mittal
Рет қаралды 37 М.
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 56 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 54 МЛН
Leetcode 177 - Nth Highest Salary - Python Solution | FAANG Interviews
8:06
LeetCode 185: Department Top Three Salaries [SQL]
9:33
Frederik Müller
Рет қаралды 14 М.
LeetCode 176: Second Highest Salary [SQL]
7:19
Frederik Müller
Рет қаралды 19 М.
Part 1   How to find nth highest salary in sql
11:45
kudvenkat
Рет қаралды 1,9 МЛН
LeetCode Medium 1341 "Movie Rating" SAP Interview SQL Question with Explanation
12:04
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 15 МЛН