Ernest
My feedback
8 results found
-
11 votes
An error occurred while saving the comment Ernest supported this idea · -
19 votesErnest supported this idea ·
-
8 votesErnest supported this idea ·
-
6 votesErnest supported this idea ·
-
5 votesErnest supported this idea ·
-
20 votesErnest supported this idea ·
-
9 votesErnest supported this idea ·
-
3 votesErnest supported this idea ·
Add support for filtering an Aeries Query based on the current date/time, at runtime.
For example, to list staff (STF) and their active job assignments (STJ), one might use a query similar to the following:
LIST STJ ID SCL JC SD ED IF ( SD = NULL OR SD <= 'MM/DD/YYYY' ) AND ( ED = NULL OR ED >= 'MM/DD/YYYY' )
While this works, it requires users to adjust the date each time they execute it.
If support were added for a "current date" function, like the built-in T-SQL function "getdate()", this Aeries query might be rewritten as:
LIST STJ ID SCL JC SD ED IF ( SD = NULL OR SD <= (( GETDATE() )) ) AND ( ED = NULL OR ED >= (( GETDATE() )) )
NOTE: The above query does not work. It is provided as an example of how support for a current-date function might be implemented.