Kater SQL Functions Conditions
KATER__IS_AT_LEAST
True where the field is greater than or equal to the value.
Family: Conditions
Syntax
KATER__IS_AT_LEAST(field, value)Arguments
| Argument | Description |
|---|---|
field | The value to test: a field, or a measure’s value, such as EVAL(orders.sum__amount). |
value | The value to compare with. A value, or a parameter a reader supplies. |
Returns
TRUE or FALSE. It is NULL where the field is empty, so a filter leaves that row out.
Example
This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.
SELECT orders.discount AS "Discount", EVAL(orders.count_distinct__order_id) AS "Orders"FROM kater_dataset.orders AS ordersWHERE KATER__IS_AT_LEAST(orders.discount, 0.1)GROUP BY orders.discountORDER BY 1| Discount | Orders |
|---|---|
| 0.10 | 485 |
| 0.20 | 497 |
Compiles to
The call compiles to the same SQL on DuckDB and on Snowflake.
orders.discount >= 0.1See also
- Filters and parameters
- Other functions in Conditions:
KATER__IS_EQUAL_TO,KATER__IS_NOT_EQUAL_TO,KATER__IS_GREATER_THAN,KATER__IS_LESS_THAN,KATER__IS_AT_MOST,KATER__IS_BETWEEN,KATER__IS_ONE_OF,KATER__IS_NOT_ONE_OF,KATER__TEXT_CONTAINS,KATER__TEXT_DOES_NOT_CONTAIN,KATER__IS_NULL,KATER__IS_NOT_NULL