Example
SELECT * FROM EXAMPLES.TIMESHEETFROMPREVIOUSMONTH
Definition
SELECT CEIL(W.STARTDATE TO DAY) DAYOFMONTH, COUNT(W.ISSUE) ISSUECOUNT, AUX.ASDURATION(SUM(W.TIMEWORKED)) TIMEWORKED FROM WORKLOGS W WHERE W.AUTHOR = AUX.LOGGEDINUSER() AND EXTRACT(YEAR FROM W.STARTDATE) = EXTRACT(YEAR FROM CURRENT_TIMESTAMP) AND EXTRACT(MONTH FROM W.STARTDATE) = (EXTRACT(MONTH FROM CURRENT_TIMESTAMP) -1) GROUP BY CEIL(W.STARTDATE TO DAY)