SyntaxFix
Write A Post
Hire A Developer
Questions
DATEPART(yyyy, date_column) could be used to extract year. In general, DATEPART function is used to extract specific portions of a date value.