December 11th, 2008

FLOOR (round downward)

he FLOOR function returns the largest integer less than the input value.
Format:                        FLOOR(expression)

Example:           SELECT FLOOR(10.8) FROM TABLEA;

Result:

                   

>DB2, MySQL, Oracle, and SQL Server support FLOOR.

> Access, PostgreSQL, and Sybase don’t support FLOOR.

 

Leave a reply

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: