Originally posted by am1
yes, but the format of the date field is 21042001...which is the 21st of the 4th.
the problem is that when i choose to select from >21042001 it gives me dates like
22012001
22022001
which aren't greater than 21042001
is there any way to get around this problem?
thanks
am
OK, I take it those are not stored in a date field? You need to convert them to dates and store them in a date field (like god intended when he invented the date data type. :-)
then, you can use a select like so:
select * from table where date > '25 december 2001';
or something similar.
Storing dates in anything but date fields is a bad idea, as it makes your life harder. Let the database do its job and handle this sort of thing.