Skip to content

Returns the sign of the argument as -1, 0, or 1, depending on whether x is negative, zero, or positive or NULL if the argument was NULL.

func.sign( <x> )
func.sign(0)
┌──────────────┐
│ func.sign(0) │
├──────────────┤
0
└──────────────┘
SIGN( <x> )
SELECT SIGN(0);
┌─────────┐
sign(0) │
├─────────┤
0
└─────────┘