반응형
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 |
Tags
- Redshift
- math
- list
- matplotlib
- PySpark
- dataframe
- Tkinter
- Kotlin
- Google Excel
- gas
- Python
- Mac
- SQL
- PANDAS
- PostgreSQL
- hive
- google apps script
- Google Spreadsheet
- string
- c#
- 파이썬
- numpy
- GIT
- Apache
- Github
- array
- Java
- django
- Excel
Archives
- Today
- Total
목록날짜 특정 부분 추출 (1)
달나라 노트
Redshift : date_part (특정 날짜 부분 추출하기, 요일 추출하기)
date_part 함수를 사용하면 날짜 데이터에서 특정 부분을 추출해낼 수 있습니다. date_part 함수의 syntax는 아래와 같습니다. date_part(part, date/timestamp) date/teimstamp 데이터에서 part에 명시된 부분을 return합니다. -- 현재 sysdate = 2021-06-07 20:35:59.461359 select date_part('year', sysdate); --> 2021 select date_part('month', sysdate); --> 6 select date_part('day', sysdate); --> 7 select date_part('week', sysdate); --> 23 select date_part('hour', sysd..
SQL/Redshift
2021. 6. 7. 20:47