Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 less than a particular date

Author  Topic 

cm80
Starting Member

1 Post

Posted - 2001-09-13 : 16:01:26
Hi my SQL statement is as follows:

SELECT * FROM event_log WHERE device_id = ABC AND event_time < "9/13/01 1:58:05 PM" ORDER BY event_time DESC

but the results include "9/13/01 1:58:05 PM" and I don't want them to. Is there some other way of doing this when dealing with dates or where am I going wrong

Thanks,

   

- Advertisement -