Returns the sign of a number.
SIGN ( numeric-expression )
numeric-expression The number for which the sign is to be returned.
The following statement returns the value -1.
SELECT SIGN( -550 ) FROM iq_dummy
For negative numbers, SIGN returns -1.
For zero, SIGN returns 0.
For positive numbers, SIGN returns 1.