EQL provides four constant keywords to obtain current date and time values. Values are obtained at an arbitrary point during query evaluation.
GMT time and date are independent of any daylight savings rules, while System time and date are subject to daylight savings rules.
Note:
CURRENT_DATE
and SYSDATE
return dateTime data types where time fields are reset to zero.RETURN Example AS SELECT AVG(CURRENT_DATE - DimEmployee_HireDate) AS DurationOfService FROM EmployeeState GROUP