What is the output of the following statement?
SELECT ROUND(2928.678,2);
What is the output of the following statement?
SELECT ROUND(2928.678,2);
Solution
✅ Correct Option: 2
ROUND(n, d) rounds the number to decimal places. Here , so the digits after the second decimal place are examined: the third decimal digit is 8 (2928.678), which is 5 or more, so the second decimal digit 7 is rounded up to 8.
Option 1: this is truncation (like TRUNCATE(2928.678,2)), not rounding. ROUND rounds up when the next digit is 5 or more.
Related questions:
2025: 30 May Shift 2
2026: 31 May Shift 1
2025: 15 May Shift 2