Hi everybody!
I have this where statement in my select
where getdate() < = start_date
if getdate is the same date as start_date then this condition is not true because start_date is returned like this 2002-07-27 00:00:00.000 and getdate() is equal with
2002-07-27 05:25:00.000
How can I fix this problem. One way is to add to start_date 23 hours and 59 minutes. But what is the syntax for this?
Or is there other way so solve this?
Thanks a lot,
durug
I have this where statement in my select
where getdate() < = start_date
if getdate is the same date as start_date then this condition is not true because start_date is returned like this 2002-07-27 00:00:00.000 and getdate() is equal with
2002-07-27 05:25:00.000
How can I fix this problem. One way is to add to start_date 23 hours and 59 minutes. But what is the syntax for this?
Or is there other way so solve this?
Thanks a lot,
durug