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
checking login & pass with curl
how to transfer browser requests from HTTP to HTTPS
Server Error: The signature on the certificate was found to be invalid. Check the log file for details.
How to request previous month's records in my sql's where clause?
Displaying GroupWise contacts in Exchange address book?
Customize left_col.phtml properly in Magento - XML beginner!
Windows XP - Shutdown Causes Restart
Replace line from keyword
Network card disables on reboot
Exchange 2007 - Delivery is delayed to these recipients or distribution lists: