ABS function [Numeric]

Returns the absolute value of a numeric expression.

Syntax
ABS( numeric-expression )
Parameters
  • numeric-expression   The number whose absolute value is to be returned.

Standards and compatibility
  • SQL/2003   SQL foundation feature outside of core SQL.

Example

The following statement returns the value 66.

SELECT ABS( -66 );