QuestionQ7Verified/Using Conversion Functions and Conditional ExpressionsCopy linkReport a problemAsk AstroTutorSave questionWhich two statements are true about the NVL, NVL2, and COALESCE functions?Choose twoANVL must have expressions of the same data type.BNVL can have any number of expressions in the list.CNVL2 can have any number of expressions in the list.DCOALESCE stops evaluating the list of expressions when it finds the first non-null value.EThe first expression in NVL2 is never returned.FCOALESCE stops evaluating the list of expressions when it finds the first null value.Show AnswerAnswerExplanationNVL2 uses its first expression only to determine whether it is null; it returns either its second expression when the first is not null or its third expression when the first is null. COALESCE uses short-circuit evaluation and stops once it finds the first non-null expression.Learn moreOracle Database SQL Language Reference — NVL2Oracle Database SQL Language Reference — COALESCEShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion