- short-circuit evaluation

  

  drop table t1 purge;

  create table t1 as select comm a, mgr b, sal c from emp;

  select * from t1;


  select a, b, c, nvl(nvl(nvl(a, b), c), 0) d from t1;

  select a, b, c, coalesce(a, b, c, 0) d from t1;




+ Recent posts