Complete the code to round the value 3.7 to the nearest integer.
SELECT [1](3.7);
The ROUND function rounds a number to the nearest integer.
Complete the code to get the smallest integer greater than or equal to 5.3.
SELECT [1](5.3);
The CEIL function returns the smallest integer greater than or equal to the number.
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.
Fill both blanks to round 4.567 to 2 decimal places and then get the ceiling of the result.
SELECT [1]([2](4.567, 2));
First, ROUND rounds 4.567 to 4.57. Then CEIL returns the smallest integer greater than or equal to 4.57, which is 5.
Fill all three blanks to get the floor of 9.99, then round it, and finally get the ceiling of the rounded value.
SELECT [1]([2]([3](9.99)));
First, FLOOR(9.99) gives 9. Then ROUND(9) is 9. Finally, CEIL(9) is 9.