101k views
5 votes
What is the result of this statement?

SELECT FLOOR(-1234.321)
a) -1235
b) 1234
c) -1234
d) 1235

1 Answer

5 votes

Final answer:

The result of the SQL statement SELECT FLOOR(-1234.321) is -1235, as the FLOOR function rounds down to the nearest integer, which is -1235 in this case.

Step-by-step explanation:

The question asks for the result of the SQL statement SELECT FLOOR(-1234.321). The FLOOR function rounds a number down to the nearest integer. Here, since the number is negative, it will be rounded down to the next integer that is less than or equal to it. So, for -1234.321, the FLOOR function results in -1235, since -1235 is the next whole number less than -1234.321 without considering the decimal part.

Therefore, the correct answer to the question is: a) -1235.

User Freude
by
8.2k points