Complete the code to round the value 3.7 to the nearest whole number.
SELECT [1](3.7);
The ROUND function rounds a number to the nearest integer. Here, 3.7 rounds to 4.
Complete the code to get the smallest integer greater than or equal to 5.2.
SELECT [1](5.2);
The CEIL function returns the smallest integer greater than or equal to the number. CEIL(5.2) returns 6.
Fix the error in the code to get the largest integer less than or equal to 7.9.
SELECT [1](7.9);
The FLOOR function returns the largest integer less than or equal to the number. FLOOR(7.9) returns 7.
Fill both blanks to round 4.567 to 2 decimal places and then get the ceiling of the result.
SELECT CEIL([1](4.567, [2]));
First, ROUND(4.567, 2) rounds the number to 4.57. Then, CEIL(4.57) returns 5.
Fill all three blanks to get the floor of 9.876 after rounding it to 1 decimal place.
SELECT [1]([2](9.876, [3]));
First, ROUND(9.876, 1) rounds to 9.9. Then, FLOOR(9.9) returns 9.