Skip to main content
On this page

Kater SQL Functions Conditions

KATER__TEXT_DOES_NOT_CONTAIN

True where the text does not contain the value, in any letter case.

Family: Conditions

Syntax

KATER__TEXT_DOES_NOT_CONTAIN(field, value)

Arguments

ArgumentDescription
fieldThe text to search.
valueThe text that must not be in it. 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.

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.notes AS "Notes",
EVAL(orders.count_distinct__order_id) AS "Orders"
FROM kater_dataset.orders AS orders
WHERE
KATER__TEXT_DOES_NOT_CONTAIN(orders.notes, 'gift')
GROUP BY
orders.notes
ORDER BY
1
NotesOrders
leave at door600
paid campaign581

Compiles to

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

NOT CONTAINS(LOWER(orders.notes), LOWER('gift'))

See also