Created
May 6, 2013 01:14
-
-
Save neurotech/5522830 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
| date_range(date_on) AS | |
| ( | |
| SELECT | |
| DATE((CURRENT DATE) - 14 DAYS) | |
| FROM sysibm.sysdummy1 | |
| UNION ALL | |
| SELECT | |
| date_on + 1 DAY | |
| FROM date_range | |
| WHERE date_on < DATE(CURRENT DATE) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment