반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python
- Redshift
- GIT
- list
- math
- Google Spreadsheet
- hive
- Apache
- google apps script
- Github
- Kotlin
- Mac
- PySpark
- array
- string
- c#
- Google Excel
- django
- Java
- PANDAS
- dataframe
- Tkinter
- SQL
- 파이썬
- matplotlib
- PostgreSQL
- numpy
- gas
- Excel
Archives
- Today
- Total
목록listaggdistinct (1)
달나라 노트
Redshift : listagg (여러 행 데이터 합치기)
LISTAGG() LISTAGG() 함수는 동일한 Column에 있는 데이터들 중 여러 Row의 데이터들을 하나의 행으로 합쳐주는 기능을 가집니다. 자세한건 실제 예시를 보시죠. Table name = employees department_no join_dt name 10 2020-02-01 Bero 10 2020-02-02 Alice 10 2020-02-03 Chris 20 2020-02-03 Dave 20 2020-02-02 Filia 20 2020-02-04 Elin 30 2020-02-06 Grace 30 2020-02-04 Irene 30 2020-02-05 Hella LISTAGG(column_name, 'seperator') WITHIN GROUP (ORDER BY column_name) O..
SQL/Redshift
2020. 12. 23. 23:51