Applies to
Description
Returns an integer that represents the year of the specified date. ().
Sample Source Pattern
Syntax
YEAR ( <date_or_timestamp_expr> )
Examples
Code:
SELECT YEAR('10-10-2022') AS YEAR
Result:
Code:
SELECT YEAR('10-10-2022' :: TIMESTAMP) AS YEAR;
Result:
Known Issues
No issues were found.
No related EWIs.