QUARTER
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Returns the quarter in the year specified by the argument as a short integer value in the range of 1-4.
Syntax
|
Notes
- The
argument to the function must be of type
DATE. - If date_expression is supplied as a date literal, it can be any of the valid date_literal formats where the day specification (DD) precedes the month specification (MM).
- The result is of type
SHORT. - If the argument expression evaluates to
NULL, the result isNULL.
Example
In
this example, which illustrates the QUARTER function,
the query requests all rows in the orders table where the order_date is
in the third quarter of the year:
|
Compatibility
ODBC compatible