일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- TypeScript
- security
- C#
- bash
- vue.js
- Python
- npm
- docker
- git
- 앙상블
- AI
- Clone
- vuetify
- property
- dotenv
- VUE
- leetcode
- nginx
- machine learning
- loop
- type
- var
- webpack
- scss
- C++
- condition
- generic
- JavaScript
- BOJ
- 보안
Archives
- Today
- Total
ice rabbit programming
[LeetCode] Second Highest Salary 본문
728x90
https://leetcode.com/problems/second-highest-salary/
Second Highest Salary - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
두 번째로 큰 값을 찾는 문제였다. MAX 값보다 작은 값들 중에 MAX를 Select하였다.
# Write your MySQL query statement below
SELECT MAX(Salary) as SecondHighestSalary
FROM Employee
WHERE Salary < (SELECT MAX(Salary) From Employee);
728x90
'PS > LeetCode' 카테고리의 다른 글
[LeetCode] Delete Duplicate Emails (0) | 2020.05.03 |
---|---|
[LeetCode] May Challenge 2 - Jewels and Stones (0) | 2020.05.03 |
[LeetCode] May Challenge 1 - First Bad Version (0) | 2020.05.01 |
[LeetCode] Employees Earning More Than Their Manager (0) | 2020.05.01 |
[LeetCode] Symmetric Tree (0) | 2020.05.01 |