Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Next section

- (Negative)

A unary operator that returns an expression as a negative, numeric value.




Argument Description
expression A numeric expression.


Unary operators perform an operation on only one expression of any of the data types of the numeric data type category.

– (Negative) is a Caché SQL extension.


The following example returns three numeric fields: the Age column from Sample.Person; the – (Negative) value of the average of Age; and the Age minus the average age:

       -(AVG(age)) AS NegAvg,
       Age-AVG(Age) AS AgeRelAvg
FROM Sample.Person
Copy code to clipboard

See Also

+ (Positive)