Produces a single value from a combination of symbols and operators or predicates.
is a number, a quoted character string, or a datetime value that represents a single, specific data value.
is the alias that is assigned to a table by using the AS keyword in the FROM clause of a SELECT statement.
is the name of a column.
is a SAS or aggregate function.
See | FedSQL Functions |
is a subquery that returns a single value.
is a symbol that specifies an action that is performed on one or more expressions. The following table shows valid operators. An expression can also contain the CASE or COALESCE expressions. For more information, see CASE Expression or COALESCE Expression.
Operator
|
Description
|
---|---|
+
|
adds
|
–
|
subtracts
|
*
|
multiplies
|
/
|
divides
|
=
|
equals
|
<>
|
does not equal
|
>
|
is greater than
|
<
|
is less than
|
>=
|
is greater than or equal
to
|
<=
|
is less than or equal
to
|
**
|
raises to a power
|
unary –
|
indicates a negative
number
|
||
|
concatenates
|
is an expression that returns true, false, or unknown.
Group
|
Expressions, Operators,
and Predicates
|
Description
|
---|---|---|
0
|
( )
|
forces the expression
enclosed to be evaluated first
|
1
|
CASE expression
|
See CASE Expression
|
2
|
**
|
raises to a power
|
unary +, unary −
|
indicates a positive
or negative number
|
|
3
|
*
|
multiplies
|
/
|
divides
|
|
4
|
+
|
adds
|
−
|
subtracts
|
|
5
|
||
|
concatenates
|
6
|
[NOT] BETWEEN predicate
|
|
DISTINCT predicate
|
||
[NOT] EXISTS predicate
|
See EXISTS Predicate
|
|
[NOT] IN predicate
|
See IN Predicate
|
|
IS [NOT] TRUE predicate
|
||
IS [NOT] FALSE predicate
|
||
IS [NOT] MISSING predicate
|
||
IS [NOT] NULL predicate
|
||
IS [NOT] UNKNOWN predicate
|
||
LIKE predicate
|
See LIKE Predicate
|
|
7
|
=
|
equals
|
^=, <>
|
does not equal
|
|
>
|
is greater than
|
|
<
|
is less than
|
|
>=
|
is greater than or equal
to
|
|
<=
|
is less than or equal
to
|
|
8
|
AND
|
indicates logical AND
|
9
|
OR
|
indicates logical OR
|
10
|
NOT
|
indicates logical NOT
|