SIGN

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next

version 11


SIGN (arithmetic_expression)

Description

The SIGN function returns the sign of the arithmetic_expression (e.g., 1 for a positive number, -1 for a negative number or 0).

Example

This example will returns all the negative amounts found in the INVOICES table:


   SELECT AMOUNT
     FROM INVOICES
     WHERE SIGN(AMOUNT) = -1;

4D - Documentation   Français   English   German   Japanese   4D SQL Reference, Table of Contents   4D SQL Reference, Index   Back   Previous   Next