This in the only way to do it properly to get the desired results
SQL> select 12 from dual where null is null; 12 ---------- 12 1 row selected. SQL> SQL>