SQL · Numeric functions

abs()

The absolute value.

Syntax
abs(number)

Example

Open in the lab

More in this group

asin() / acos() / atan() atan2() ceil() / floor() 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