Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- Serialization
- C 언어 코딩 도장
- Selection Sorting
- Graph
- coding test
- 메모리구조
- JSON
- 윤성우의 열혈 자료구조
- buffer
- R
- 혼자 공부하는 C언어
- s
- datastructure
- 이것이 자바다
- stream
- 이스케이프 문자
- Stack
- 알기쉬운 알고리즘
- list 컬렉션
- insertion sort
- C programming
- Algorithm
- 윤성우 열혈자료구조
Archives
- Today
- Total
Engineering Note
177. Nth Highest Salary 본문
it 취업을위한알고리즘문제풀이
문제
https://leetcode.com/problems/nth-highest-salary/
코드
CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
SET N=N-1;
RETURN (
# Write your MySQL query statement below.
#N=1;
SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT 1 OFFSET N
);
END
문제해결방법
'Problem Solving > LeetCode(SQL)' 카테고리의 다른 글
596. Classes More Than 5 Students (0) | 2021.05.29 |
---|---|
626. Exchange Seats (0) | 2021.05.29 |
178. Rank Scores (0) | 2021.05.21 |
180. Consecutive Numbers (0) | 2021.05.21 |
184. Department Highest Salary (0) | 2021.05.21 |
Comments