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?
You can use year() function in sql to get the year from the specified date.
year()
Syntax:
YEAR ( date )
For more information check here