Products Downloads


French version


 

 

Syntax

DAY_OF_YEAR(Argument)

 

Description

The DAY_OF_YEAR SQL scalar function returns an integer between 1 and 366 that represents the day of the year where 1 is January 1.

The argument must be a date, or a timestamp.

 

The result of the function is a large integer.

If the argument can be null, the result can be null; if the argument is null, the result is the null value.

 

Example

Assume ORDER_DATE is February 15, 2003

 

DAY_OF_YEAR(ORDER_DATE) returns 46.

 

List of SQL scalar functions by topic

 

↑ Top of page


  • Aucune étiquette