get current year sqlserver code example
Example 1: get current year sql
select year(getdate())
Example 2: print year of a date sql
SELECT EXTRACT(YEAR FROM CURRENT_DATE)
select year(getdate())
SELECT EXTRACT(YEAR FROM CURRENT_DATE)