Microsoft
Software
Hardware
Network
Question : How to Query a timestamped field (smalldatetime) for yesterdays date in a where clause?
Which function is best for querying yesterday's date from a timestamped field (smalldatetime)?
For example:
select *
from securitymoneyactivity
where uploaddate = Datepart? DateDiff? or DateADD? etc....
---UploadDate being the timestamped field
I need a "GetDate() -1" return on my results.
Answer : How to Query a timestamped field (smalldatetime) for yesterdays date in a where clause?
select * from securritymoenyactivity where datediff(day,uploaddate,ge
tdate())=1
http://msdn.microsoft.com/
en-us/libr
ary/ms1897
94.aspx
Random Solutions
alter does it drop
Intel Sata RAID controller on RHEL 4 problem
Meetings reschuled are still showing old meeting date and time
How to stablish a proper setup in MS Outlook 2003 encrypting mails
how can i change any image resolution online and then save it in to local pc ??
Asp.Net MVC PartialView doesn't Refresh after Ajax postback
Inserting another drawing
Ran a disk clean-up and a de-frag
OCS 2007 R2 and Cisco call manager
HTTP Error 404.3 on IIS 7.0