TravisLaborde
IS-IT--Management
A big problem I'm having with the datetime field, is that my data comes from differing sources, some of which put in just the date (01/24/2003) and some put in a dateTIME (01/24/2003 10:05:23)...
Because of this, I have no end of problems with things like:
select x from table where date_field = '01/24/2003'
I resort to doing crazy things like:
select x from table where date_field >= '01/24/2003' and date_field < '01/25/2003'
YUCK.
I'm sure there is a better way. Can anyone share with me your own solutions to this problem?
Thanks,
Travis
Because of this, I have no end of problems with things like:
select x from table where date_field = '01/24/2003'
I resort to doing crazy things like:
select x from table where date_field >= '01/24/2003' and date_field < '01/25/2003'
YUCK.
I'm sure there is a better way. Can anyone share with me your own solutions to this problem?
Thanks,
Travis