Multiple choice technology databases

Compare the output of the following: SELECT TRUNC(99.57,1) FROM DUAL; and SELECT ROUND(99.57,1) FROM DUAL;

  1. 99.57,99,6

  2. 99.5,99.6

  3. 99.6,99.6

  4. 99.57,99.57

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

TRUNC truncates without rounding, so 99.57 becomes 99.5. ROUND follows standard rounding rules (5 rounds up), so 99.57 becomes 99.6.