For similar capabilities to Amazon Timestream for LiveAnalytics, consider Amazon Timestream for InfluxDB. It offers simplified data ingestion and single-digit millisecond query response times for real-time analytics. Learn more here.
Logical operators
Timestream for LiveAnalytics supports the following logical operators.
| Operator | Description | Example |
|---|---|---|
|
AND |
True if both values are true |
a AND b |
|
OR |
True if either value is true |
a OR b |
|
NOT |
True if the value is false |
NOT a |
-
The result of an
ANDcomparison may beNULLif one or both sides of the expression areNULL. -
If at least one side of an
ANDoperator isFALSEthe expression evaluates toFALSE. -
The result of an
ORcomparison may beNULLif one or both sides of the expression areNULL. -
If at least one side of an
ORoperator isTRUEthe expression evaluates toTRUE. -
The logical complement of
NULLisNULL.
The following truth table demonstrates the handling of NULL in AND
and OR:
| A | B | A and b | A or b |
|---|---|---|---|
|
null |
null |
null |
null |
|
false |
null |
false |
null |
|
null |
false |
false |
null |
|
true |
null |
null |
true |
|
null |
true |
null |
true |
|
false |
false |
false |
false |
|
true |
false |
false |
true |
|
false |
true |
false |
true |
|
true |
true |
true |
true |
The following truth table demonstrates the handling of NULL in NOT:
| A | Not a |
|---|---|
|
null |
null |
|
true |
false |
|
false |
true |