Skip to main content
On this page

Kater SQL Functions Conditions

KATER__IS_NOT_ONE_OF

True where the field equals none of the values.

Family: Conditions

Syntax

KATER__IS_NOT_ONE_OF(field, value [, ...])

Arguments

ArgumentDescription
fieldThe field to test.
valuesThe values to leave out, written one after the other. One or more values, or one list parameter a reader supplies.

Returns

TRUE or FALSE. It is NULL where the field is empty, so a filter leaves that row out.

Usage notes

  • A row whose field is empty is left out too, since the comparison with an empty value is not true.

Example

This Sandbox query reads the sample shop’s orders. The table shows the rows that Kater gave.

SELECT
orders.region AS "Region",
EVAL(orders.count_distinct__order_id) AS "Orders"
FROM kater_dataset.orders AS orders
WHERE
KATER__IS_NOT_ONE_OF(orders.region, 'AMER', 'APAC')
GROUP BY
orders.region
ORDER BY
1
RegionOrders
EMEA777
LATAM760

Compiles to

The call compiles to the same SQL on DuckDB and on Snowflake.

NOT orders.region IN ('AMER', 'APAC')

See also