Say, for example, we have a table named: datums, with a column datum (date type), the table contains:
21-01-2010 22-01-2010 01-12-2009 06-10-2008 03-07-2007
then you can use:
SELECT * FROM datums WHERE datum BETWEEN to_date('01/01/2009','mm/dd/yyyy') AND to_date('12/31/2010','mm/dd/yyyy')
result:
21-01-2010 22-01-2010 01-12-2009
R van Rijn
source share