Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- db
- GitHub
- error
- JPA
- Vue
- oracle
- 오라클
- jquery
- Eclipse
- 넥사크로
- IntelliJ
- 자바
- Security
- 생성
- JavaScript
- Java
- 에러
- 프로그래머스
- 쿼리
- 코틀린
- mybatis
- Spring
- Git
- kotlin
- 시큐리티
- aws
- 함수
- 스프링
- 방법
- 알고리즘
Archives
- Today
- Total
목록first_value (1)
송민준의 개발노트

쿼리를 다루다보면 특정 행에 대해 다뤄야 할 때가 있다. 종류로는 1. FIRST_VALUE 2. LAST_VALUE 3. LAG 4. LEAD 위 4가지가 있다. 1. FIRST_VALUE : 파티션에서 가장 처음에 나오는 값을 구한다.(그룹함수 MIN과 같은 결과를 구할 수 있음) select deptno, sal, first_value(sal) over () as A, first_value(sal) over (partition by DEPTNO) as B, first_value(sal) over (partition by DEPTNO order by sal) as C, first_value(sal) over (partition by DEPTNO order by sal desc rows unbounde..
DB/쿼리
2020. 8. 9. 20:52