SQL - Scalar functions - QUARTER


Volta a página anterior

Volta ao Menu das scalar functions

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

QUARTER

Returns an integer value in the range 1 to 4, representing the quarter of the year for the date specified in the argument.

QUARTER(expression)

The schema is SYSFUN.

expression
An expression that returns a value of one of the following built-in data types:
DATE, TIMESTAMP, or a valid character string representation of a date or timestamp that is not a CLOB.
In a Unicode database, if a supplied argument is a graphic string (except DBCLOB), it is first converted to a character string before the function is executed.

The result of the function is INTEGER.
The result can be null; if the argument is null, the result is the null value.


© Copyright IBM Corp.