find current year data in sql server code example Example: get current year sql select year(getdate())