일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- docker
- condition
- Python
- dotenv
- generic
- C++
- npm
- vuetify
- 보안
- property
- VUE
- bash
- JavaScript
- Clone
- webpack
- git
- BOJ
- vue.js
- security
- scss
- TypeScript
- 앙상블
- machine learning
- nginx
- leetcode
- type
- C#
- var
- loop
- AI
Archives
- Today
- Total
ice rabbit programming
[LeetCode] Second Highest Salary 본문
https://leetcode.com/problems/second-highest-salary/
두 번째로 큰 값을 찾는 문제였다. MAX 값보다 작은 값들 중에 MAX를 Select하였다.
# Write your MySQL query statement below
SELECT MAX(Salary) as SecondHighestSalary
FROM Employee
WHERE Salary < (SELECT MAX(Salary) From Employee);
'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 |