Expressions.expr-factor

A single value

Format

[ + | - ]{ Literal |
expr-column-ref |
expr-primary-constant |
expr-primary-datetime |
expr-primary-interval |
expr-primary-cast |
( expression ) |
( query-expr ) |
expr-primary-sumfunc |
Case expression |
Numeric value function |
String value function |
expr-primary-format |
expr-primary-element |
expr-primary-opc-time |
expr-primary-odbc-function |
expr-primary-odbc-datetime }

Remarks

An expression factor can be any one of the following:
Example:

Example 1:A simple column reference

CurrentState

Example 2:A more complicated expression

(CurrentValue - 32.0) * 9.0 / 5.0

Example 3:A scalar subquery

(SELECT CurrentValue FROM CDBPoint WHERE FullName = 'My Point')

Example 4:A scalar subquery using an aggregate function

(SELECT MAX(CurrentValue) FROM CPointAlg WHERE FullName LIKE '%Flow') / 100.0


Disclaimer

ClearSCADA 2017 R3