-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for QUARTER to EXTRACT, FIRST_DAY and LAST_DAY [CORE5693] #5959
Comments
Modified by: Sean Leyne (seanleyne)summary: EXTRACT(QUARTER FROM ) => Add support for QUARTER context to EXTRACT( xxx FROM Date|Timestamp) |
Commented by: @mrotteveel The reason we don't have it, is probably that it is not defined in the standard (at least, not in SQL:2011). As a workaround, the quarter can be trivially derived using: 1 + (extract(MONTH from somevalue) - 1) / 3 |
Commented by: @asfernandes What others DBMS has this? |
Oracle: select to_char(sysdate, 'Q') as qtr from dual; Extract would also be logical for Firebird: |
Submitted by: @ibprovider
I'm surprised that Firebird (v3) still not support QUARTER in EXTRACT statement.
It has a serious reason?
The text was updated successfully, but these errors were encountered: