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
- Eclipse
- Git
- 오라클
- kotlin
- GitHub
- 자바
- Spring
- 시큐리티
- mybatis
- 스프링
- IntelliJ
- 방법
- Java
- 코틀린
- 넥사크로
- aws
- db
- Security
- 생성
- error
- 프로그래머스
- JavaScript
- 함수
- 에러
- 알고리즘
- oracle
- Vue
- JPA
- 쿼리
- jquery
Archives
- Today
- Total
목록Lead (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