How can I avoid a null
return value when invoking the greatest
function with a null
parameter. Example:
select greatest(1,null,2) from dual
The above returns null
, but I want 2
.
I don't want to use nvl
and also not something like:
coalesce(greatest(term1,term2,term3), greatest(term1,term2), term1).
Is there is any other way of avoiding the null
return value?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…