Arithmetic operators take numerical values (either logical or variables) as their operands and return a single numerical value.
Table 27. Arithmetic Operators
If a computed item is displayed on a Request pane, and the definition of item uses subtraction, such as "Mytable.Column1-5", a SQL error can occur. The exact error depends on the database, but the most common error indicates an undefined name was used. Because databases allow hyphenated names, Interactive Reporting attempts to deal with such names intuitively. Thus, an item definition like "Mytable.Column1-5" is interpreted as a name. In order to ensure it is treated as subtraction, include a space on either side of the hyphen/subtraction operator. For example, entering the computed item definition as Mytable.Column1 - 5" ensures that the correct SQL is generated. |