Here is the part of code that is been used in MS Access query. What should I use instead for SQL Server query? The format of date is same as GETDATE()
.
((IIf([DATE]-Int([DATE])>0,'N',Null)) Is Null));
I tried using CASE
and it's not working.
If I get this correctly, you're testing if the timepart of the date is midnight.
You can do that in the following way:
Cast([DATE] AS Time) = '00:00:00'
Your Access code, by the way, can be minimized to:
[DATE]-Int([DATE])=0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.