Write a query to extract the year from the current date code example Example: get current year sql select year(getdate())