FunkyBunch
Instructor
Hello all,
I am comparing two dates in sql and it seems to be missing some records.
the statement i am running is:
select next_insp_date_Fw, last_insp_date_Fw, archive_status_Fw, insp_description_Fw, getdate()
from user_defined19_fw
where vehicle_id_fw = '1105' and next_insp_date_fw <= getdate()
and i recieve nothing in return. When i take off the date comparison as shown:
select next_insp_date_Fw, last_insp_date_Fw, archive_status_Fw, insp_description_Fw, getdate()
from user_defined19_fw
where vehicle_id_fw = '1105'
it returns this data:
2007-12-14 00:00:00.000 -next insp date
2007-06-14 00:00:00.000 -last insp date
N -archive status
CVIP -Inspection
2007-11-23 11:58:37.130 - Getdate()
Thanks!
I am comparing two dates in sql and it seems to be missing some records.
the statement i am running is:
select next_insp_date_Fw, last_insp_date_Fw, archive_status_Fw, insp_description_Fw, getdate()
from user_defined19_fw
where vehicle_id_fw = '1105' and next_insp_date_fw <= getdate()
and i recieve nothing in return. When i take off the date comparison as shown:
select next_insp_date_Fw, last_insp_date_Fw, archive_status_Fw, insp_description_Fw, getdate()
from user_defined19_fw
where vehicle_id_fw = '1105'
it returns this data:
2007-12-14 00:00:00.000 -next insp date
2007-06-14 00:00:00.000 -last insp date
N -archive status
CVIP -Inspection
2007-11-23 11:58:37.130 - Getdate()
Thanks!