SQL · Numeric functions

ceil() / floor()

Rounds up or down to an integer.

Syntax
ceil(number) / floor(number)

Example

Open in the lab

More in this group

abs() asin() / acos() / atan() atan2() degrees() / radians() exp() ln() log() log10()

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course