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
BESX 5.0.1.4 and Exchange 2010 Users can't activate enterprise email
How do I set up a link to a specific page within a wordpress template?
unable to browse .asmx page in IIS7
Server 2008 Minidump help needed
compile this code with Delphi 2010
mailbox move in exchange 2007
C# sharing variables or data between different classes
VB.NET Setup Installing App Files Without Asking What Folder to Install
Php 500 internal server error received on website but not using xampp at home
How to monitor users on WSS 3.0