Skip to main contentSkip to solution

State the output of the following query:

SELECT ROUND(9873.567,-2);

Solution

✅ Correct Option: 1

A negative second argument in ROUND() rounds to the left of the decimal point. −2-2 means round to the nearest hundred.

The last two digits before the decimal point are 7373, and 73.567≥5073.567 \ge 50, so the hundreds digit rounds up.

9873.567→99009873.567 \rightarrow \boxed{9900}


Option 3: 9800 is what you get by truncating, as TRUNCATE(9873.567,-2) does. ROUND rounds to the nearest value, and 9873.567 is closer to 9900 than to 9800.

Options 2 and 4: these keep the decimal part by dropping digits. A negative position always affects digits to the left of the decimal point.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question