Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime comparison
Message
 
 
To
03/04/2009 10:05:25
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01392907
Message ID:
01393019
Views:
47
>>Hi,
>>Thank you. May I know how to compare date only portion in SQL?
>>I know we can use CONVERT() but would it be optimized since index cant contain function (could it?). ?
>>
>>Thank you
>
>
>... DATEDIFF(day,datetime1,datetime2)=0
>
Yes, that's what I meant. Is it the same as comparing datetime field with 2 parameters in terms of optimization?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform