YEAR (Azure Stream Analytics)

Returns an integer that represents the year of the specified date

Syntax

YEAR ( date )  

Arguments

date

Is an expression that can be resolved to a datetime. date can be an expression, column expression, or string literal.

Return Types

bigint

Examples

SELECT YEAR (EntryTime)  
FROM Input TIMESTAMP BY EntryTime  
WHERE Toll > 5