일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- condition
- vue.js
- scss
- 보안
- vuetify
- machine learning
- docker
- type
- 앙상블
- generic
- webpack
- dotenv
- BOJ
- property
- var
- security
- TypeScript
- bash
- AI
- loop
- Clone
- JavaScript
- npm
- nginx
- Python
- git
- VUE
- leetcode
- C++
- C#
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 |