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(99.57,1) truncates to 99.5 (chops off extra decimals), while ROUND(99.57,1) rounds to 99.6 (rounds .57 up to .6). The option correctly shows these outputs. Note that option A shows '99,6' which appears to be a typo for '99.6'.