Created
April 20, 2017 05:39
-
-
Save gps/6e6de6ce75268d6a0c1babbe892eee0f to your computer and use it in GitHub Desktop.
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 | |
PROJECTS.PROJECT_ID, | |
PROJECTS.NAME, | |
PROJECTS.COLOR_CODE, | |
PROJECTS.CHANGE_TOKEN, | |
PROJECTS.DELETED | |
FROM PROJECTS, TIMERS | |
WHERE | |
PROJECTS.DELETED = '0' AND | |
TIMERS.DELETED = '0' AND | |
PROJECTS.PROJECT_ID = TIMERS.PROJECT_ID AND | |
TIMERS.START_TIME BETWEEN datetime('now', '-14 days') AND datetime('now', '1 second') | |
GROUP BY PROJECTS.PROJECT_ID | |
ORDER BY PROJECTS.NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment