| 4D v20SIGN | ||||||||||||||
| 
 | 
    4D v20
 SIGN 
         | |||||||||||||
| 
 | ||
The SIGN function returns the sign of the arithmetic_expression (e.g., 1 for a positive number, -1 for a negative number or 0).
This example will returns all the negative amounts found in the INVOICES table:
SELECT AMOUNT
FROM INVOICES
WHERE SIGN(AMOUNT) = -1;
	Product:  4D
	Theme:  Functions
	
        
        
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D SQL Reference ( 4D v20)
	
	
 Add a comment
Add a comment