Skip to main content
On this page

Kater SQL Functions Date conditions

KATER__IS_NOT_ON

True where the date is not the value.

Family: Date conditions

Syntax

KATER__IS_NOT_ON(field, value)

Arguments

ArgumentDescription
fieldThe date or timestamp to test.
valueThe 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.

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.order_date AS "Order Date",
EVAL(orders.count_distinct__order_id) AS "Orders"
FROM kater_dataset.orders AS orders
WHERE
KATER__IS_ON_OR_AFTER(orders.order_date, DATE '2026-09-27')
AND KATER__IS_NOT_ON(orders.order_date, DATE '2026-09-28')
GROUP BY
orders.order_date
ORDER BY
1
Order DateOrders
2026-09-276
2026-09-299
2026-09-302

Compiles to

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

orders.order_date <> CAST('2026-09-28' AS DATE)

See also