The following query returns the day of the month for the call_dtime and res_dtime columns
in two expression columns.
The following query uses the DAY and CURRENT functions
to compare column values to the current day of the month. It selects
only those rows where the value is earlier than the current day. In
this example, the CURRENT day is 15.
The following query uses the CURRENT function
to select all calls except those that came in today.
The SYSDATE function closely resembles
the CURRENT function, but the default precision
of its returned value is DATETIME YEAR TO FRACTION(5), rather than
the default DATETIME YEAR TO FRACTION(3) precision of CURRENT when
no DATETIME qualifier is specified.