Multiple choice technology databases

Which function below can best be categorized as similar in function to an IF-THEN-ELSE statement?

  1. NEW_TIME

  2. Decode

  3. ROWIDTOCHAR

  4. SQRT

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The DECODE function in SQL works like an IF-THEN-ELSE statement by evaluating values and returning different results based on conditions. It takes an expression and pairs of search-result values, with an optional default.