Hi guys,
I need to select highest number based on specific year.
Select max(num) from SomeTable where Date like '%2012%'
now this is not good since month 12 and day 20 in 2013 year will also respond to this query.
my date format is ddMMyyyy.
Any suggestions?
If the column ends in yyyy:
Select max(num) from SomeTable where Date like '%2012'