SQL server 2000 bug??

  • Thread starter Thread starter haiwen
  • Start date Start date
H

haiwen

Hello, everyone,

I have table(t1) with one column endTime(datetime type),
suppose there is one record with the endTime(2/24/2003
11:45 AM)

If I use the query
select *
from t1
where endTime<'2/24/2003 11:50 AM'

I can get the record. But if the query change to:
select *
from t1
where endTime<'2/24/2003 12:50 AM'
I can not get the record?? obviously, '2/24/2003 11:45 AM'
is less than '2/24/2003 12:50 AM'

Could any one help me?

Haiwen
 
Hello,
I get it, thanks a lot,

haiwen
-----Original Message-----
try 12:50PM :)

--
Angel Saenz-Badillos [MS] Managed Providers
This posting is provided "AS IS", with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
haiwen said:
Hello, everyone,

I have table(t1) with one column endTime(datetime type),
suppose there is one record with the endTime(2/24/2003
11:45 AM)

If I use the query
select *
from t1
where endTime<'2/24/2003 11:50 AM'

I can get the record. But if the query change to:
select *
from t1
where endTime<'2/24/2003 12:50 AM'
I can not get the record?? obviously, '2/24/2003 11:45 AM'
is less than '2/24/2003 12:50 AM'

Could any one help me?

Haiwen


.
 
At 12 Noon, the time becomes 12:00 PM (not AM), So, change
your query to 12:50 PM and you should find your record.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top