SQL Server Transact Basic to Expert - Display the Year alone using systemdate

This blog shows how to do an get the year alone from the Systemdate in the output using SQL Query

Example:

SELECT DATEPART(yy, GETDATE())

The expected result would be 2011
Ebook Download
View all
SQL Jobs
Read by 0 people
Download Now!
Learn
View all