In sql server 2008, how to extract only the year from the date. In DB I have a column for date, from that I need to extract the year. Is there any function for that?
year(table_column)
Example:
select * from mytable where year(transaction_day)='2013'