Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine last minute and second possible in a datetime
Message
 
 
To
18/10/2007 09:47:18
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01261814
Message ID:
01261830
Views:
8
Actualy you should not roll starting date back one day or you will pickup all previous date data excluding midnight.

>Thanks Sergey!
>
>
>>Tracy,
>>
>>You doun't need to change start date but you're correct about moving end date to the beginnig of the next day
>>
>>fielddate >= '05/01/2007 00:00:00' and fielddate < '06/01/2007 00:00:00'
>>
>>
>>>Nevermind, I decided it would be easier to go back one day from the beginning date and foward one day from the endate and do > 04/30/2007 and < 06/01/2007 instead...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform