Last active
March 1, 2019 07:20
-
-
Save stasgm/117f99728e25e4d01a2b4cd559ae83a6 to your computer and use it in GitHub Desktop.
Calculates the first day of the month for given period
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select DATEADD(month, 1, DATEADD(DAY, -EXTRACT(DAY FROM CURRENT_DATE) + 1, CURRENT_DATE)) from rdb$database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment