SQL ABS()

ABS function in SQL is used to ELECT absolute value of a number.


SYNTAX :
abs(x)

database table 'scanf'

area

angle

num

36.7844596
212.25430-78
121.00145-45
141.698185-96

EXAMPLE:

SELECT ABS(num) as Val from scanf;
This would produce following result:
Val
96
78
45
96



Online Execute/Compile
change view