티스토리 뷰
728x90
> SELECT months_between('1997-02-28 10:30:00', '1996-10-30');
3.94959677
> SELECT months_between('1997-02-28 10:30:00', '1996-10-30', false);
3.9495967741935485
https://docs.databricks.com/sql/language-manual/functions/months_between.html
months_between function | Databricks on AWS
Returns the number of months elapsed between dates or timestamps in expr1 and expr2. Returns A DOUBLE. If expr1 is later than expr2, the result is positive. If expr1 and expr2 are on the same day of the month, or both are the last day of the month, time of
docs.databricks.com
728x90
'공부' 카테고리의 다른 글
[spark] spark.conf.set("spark.sql.legacy.timeParserPolicy", "LEGACY") (0) | 2023.02.26 |
---|---|
[kotlin] semaphore & coroutine (0) | 2023.02.26 |
[kotlin] wait for coroutine finish (0) | 2023.02.26 |
[kotlin] toSortedMap (key based) (0) | 2023.02.26 |
[scala] loop & data = data ++ data (0) | 2023.02.23 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 리퍼럴 코드 혜택
- 팔로워 수 세기
- 테슬라 리퍼럴 코드
- 테슬라 리퍼럴 코드 생성
- 인스타그램
- 테슬라 레퍼럴 코드 확인
- 모델 Y 레퍼럴
- 테슬라 크레딧 사용
- 책그림
- Bot
- 레퍼럴
- 연애학개론
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴 적용 확인
- 클루지
- wlw
- 테슬라 추천
- 유투브
- 할인
- 테슬라 레퍼럴
- 모델y
- 김달
- COUNT
- 테슬라
- follower
- Kluge
- 메디파크 내과 전문의 의학박사 김영수
- 개리마커스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함