Show current system Date and time if value is null
Hi,
I’m working on an Oracle Service Cloud (OSvC) report and need to create an SQL expression which should show SystemDate or better Current Date and time
I tried the following expressions, but they all give syntax errors:
IF(user_trans.end_dttm IS NULL, sysdate, user_trans.end_dttm)
IF(user_trans.end_dttm IS NULL THEN sysdate ELSE user_trans.end_dttm)
Also, what is the proper function or variable for current date/time in OSvC? Is it sysdate
, CURRENT_DATE
, NOW()
, or something else?
Tagged:
0