Last active
September 7, 2018 16:08
-
-
Save hostelix/d8cd7ac794ce8047acc91d5bd9019801 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| with table_dates AS ( | |
| SELECT generate_series(CURRENT_DATE, | |
| (date_trunc('MONTH', CURRENT_DATE) + INTERVAL '1 MONTH - 1 day')::DATE, | |
| '1 day'::interval)::date AS date_day | |
| ) SELECT * FROM table_dates WHERE EXTRACT(ISODOW FROM tabla_dias.fecha) IN (6, 7); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment