Welcome to plsql4all.blogspot.com SQL, MYSQL, ORACLE, TERADATA, MONGODB, MARIADB, GREENPLUM, DB2, POSTGRESQL.

Tuesday, 19 August 2014

CEIL function


CEIL returns smallest integer greater than or equal to n.

Ceil (n)

Where n is a number.

This function takes as an argument any numeric datatype or any nonnumeric datatype that can be implicitly converted to a numeric datatype. The function returns the same datatype as the numeric datatype of the argument.

select CEIL(10.40) from dual;

select CEIL(10.50) from dual;

select CEIL(10.60) from dual;

No comments:

Post a Comment

Please provide your feedback in the comments section above. Please don't forget to follow.