hi,
i have a column containing a list of dates (2010-01-31).
i want to print out the year only.
what is the sql statement to make this happen, thanks?
eg.
date
2010-01-31
2010-02-11
2009-01-22
2008-12-27
2010-11-12
wish to achieve this result:
2008
2009
2010