Back

Explore Courses Blog Tutorials Interview Questions

Explore Tech Questions and Answers

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

0 votes
2 views
by (2.6k points)
I was expecting the following SQL Query to return 1

SELECT CEILING(2/10)

However, it returns 0. Is there any way to get 1 from that SQL?

1 Answer

0 votes
by (7.2k points)

When we are using the SQL server calling function Return the smallest integer value that is greater than or equal to a number:

SELECT CEILING(25.75) AS CeilValue;

The CEILING() function returns the smallest integer value that is larger than or equal to a number.

Syntax
CEILING(number)

Related questions

0 votes
1 answer
asked Feb 9, 2021 in Python by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 16, 2021 in SQL by RohitSingh (2.6k points)
0 votes
1 answer
asked Dec 30, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer
asked Dec 5, 2020 in SQL by Appu (6.1k points)

Browse Categories

...