Comparison Functions and Operators Overview¶
Name |
Description |
|---|---|
Greater than operator |
|
Greater than or equal operator |
|
Less than operator |
|
Not equal operator |
|
Less than or equal operator |
|
Equal operator |
|
NULL-safe equal operator |
|
Whether a value is within a range of values |
|
Return the first non-null value in a list |
|
Return the largest value from a list |
|
Whether a value is within a set of values |
|
Test a value against a boolean |
|
Test a value against a boolean |
|
NOT NULL value test |
|
NULL value test |
|
NULL value test |
|
Return the index of the largest threshold that is less than or equal to a value |
|
Simple pattern matching |
|
Simple pattern matching. Same as LIKE. But it is not case sensitive. |
|
Whether a value is not within a range of values |
|
shorthand for multiple |
|
Return the smallest value |
|
Negation of simple pattern matching |
Comparison operations result in a value of TRUE, FALSE, or NULL. These operations work for both numbers and strings. Strings are automatically converted to numbers and numbers to strings as necessary.
The following relational comparison operators can be used to compare not only scalar operands, but row operands:
= > < >= <= <> !=