YEAR function
The YEAR function returns an integer data type.
expression must return one of the following built-in data types:
- DATE
- DATE DURATIONA date duration occurs as the result of subtracting two dates.
- TIMESTAMP
- TIMESTAMP WITH TIMEZONE
- TIMESTAMP DURATIONA timestamp duration occurs as the result of subtracting two timestamps with precision=6. The result is the year portion of the derived date, or date or timestamp, duration.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*