SQL Operators

Advantage SQL Engine

The Advantage SQL Engine supports the following operators. They are listed in order of precedence from highest precedence to lowest. Note that the operator precedence can be modified with the use of parentheses.

Description

Operators

Sign (unary plus/minus)

+, -

Multiplication

*, /

Addition

+, -

Comparison

>, >=, <, <=, =, <>, [NOT] LIKE, [NOT] IN, [NOT] BETWEEN, IS [NOT] NULL

Logical NOT

NOT

Logical AND

AND

Logical OR

OR

The following rules describe which operand types can be used with which operators: