PERIOD_INTERSECT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Period functions

Returns the overlapping sub-range of two PERIOD values, or NULL if the periods are disjoint.

Syntax

PERIOD_INTERSECT( <period1>, <period2> )

Parameters

NameRequiredDescription
period1requiredThe first PERIOD value.
period2requiredThe second PERIOD value. Must have the same element type as period1.

Returns

A PERIOD value of the same element type, or NULL when the inputs do not overlap.

Usage notes

See also