Skip to main content
Scalar function
NULL input returns NULL.

Syntax

Scalar

Arguments

Returns

  • Type: INTEGER
  • Possible values: 1 through 4.
  • NULL behavior: NULL input returns NULL.

Properties

Usage notes

  • QUARTER(value) gives the same INTEGER result as EXTRACT(QUARTER FROM value).
  • Deterministic: The same inputs and settings produce the same result.

Examples

Typical behavior

Quarter boundaries

Last modified on October 15, 2026