select nvl(trunc(null),trunc(sysdate)) from dual;
While executing above query i am getting following error
ORA-00932: inconsistent datatypes: expected NUMBER got DATE
look like when i take string or number instead of trunc(sysdate)
it run fine.
From here:
or you can do like this: