PERIOD_LDIFF

functionsupportedCore SQL functions

docs.snowflake.com ↗

Period functions

Returns the portion of the first PERIOD that lies before the second PERIOD begins, or NULL when there is no such remainder.

Syntax

PERIOD_LDIFF( <period1>, <period2> )

Parameters

NameRequiredDescription
period1requiredThe PERIOD value to subtract from.
period2requiredThe PERIOD value that may cut the right side of period1. Must have the same element type.

Returns

A PERIOD value of the same element type, or NULL.

Usage notes

See also