일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- sap ERP
- springboot
- SQL 문제풀이
- 스프링
- 구글로그인
- 자바 스트림
- SQL프로그래머스
- SQL
- python
- oauth2
- pygame
- SAP ABAP
- kotlin 클래스
- mysql
- Spring
- LeetCode SQL
- js
- 스프링시큐리티
- javascript
- oracle
- MSA
- java8
- Leetcode
- 코틀린 클래스
- 스프링부트 채팅서버
- 스프링부트
- 프로그래머스
- 오라클
- 자바스크립트
- spring boot
Archives
- Today
- Total
웅겹살의 프로그래밍 삼매경
[SQL] LeetCode SQL 178. Rank Scores (DENSE_RANK) 본문
728x90
https://leetcode.com/problems/rank-scores/
Rank Scores - 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
-- MYSQL
SELECT
score
, DENSE_RANK() OVER (ORDER BY score DESC ) 'rank'
FROM Scores;
-- ORACLE
SELECT
score
, DENSE_RANK() OVER (ORDER BY score DESC ) as rank
FROM Scores;
728x90
'SQL > SQL 문제풀이' 카테고리의 다른 글
[SQL] 프로그래머스 오랜 기간 보호한 동물(1) (1) | 2022.03.25 |
---|---|
[SQL] LeetCode SQL 184. Department Highest Salary (1) | 2021.12.01 |
[SQL] LeetCode SQL 177. Nth Highest Salary (0) | 2021.11.30 |
[SQL] LeetCode SQL 176. Second Highest Salary (0) | 2021.11.29 |
[SQL] LeetCode SQL 197. Rising Temperature (0) | 2021.11.29 |
Comments