I have a query and rather then run through five years to get one year I would rather take care of that in a query. So how would I do that? The date format is ISO which is YYYY-MM-DD and I only want 2005.
select ......
where ice_date between '2005-01-01' and '2005-12-31'
Could do a similar thing with < & >. I guess you could alsways cast to char and then substr the resultant, though I don't imagine that would be very efficient.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.