티스토리 뷰

공부

[Presto] month ago

승가비 2020. 8. 10. 22:30
728x90
date '2019-01-01' - interval '2' month

https://stackoverflow.com/questions/54155698/presto-sql-get-yyyymm-minus-2-months

 

Presto SQL get yyyymm minus 2 months

I am using Presto. I have an integer column (let's call the column 'mnth_nbr') showing year and month as: yyyymm. For instance, 201901. I want to have records showing all dates AFTER 201901 as well...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Java] convert integer to string with comma for thousands  (0) 2020.08.11
[Python] pretty print JSON (string to dict)  (0) 2020.08.10
[Java] @JsonProperty show `is` prefix  (0) 2020.08.10
[Sh] for  (0) 2020.08.10
[Sh] convert string to date  (0) 2020.08.10
댓글