Link to home
Start Free TrialLog in
Avatar of allenkent
allenkentFlag for United States of America

asked on

SQL 2005 - Display YEAR only in date column

I need only the YEAR displayed from a date column. This is going into a new SQL 2005 view.

Here is my sample code:
SELECT  startdate, OrderNumber
FROM Orders
ORDER BY startdate
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of allenkent

ASKER

That was easy.