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
Application user
Team Foundation Server 2010, deleted web site problem
mysql search keywords table sort by relevance
Microsoft AutoUpdate of Office 2008 for Mac
Need help to seperate Select output using TABs
VMWare ESX 4 Update Manager and failing Remediation for certain patches
How to calculate OSPF cost?
2 ways in ASP.NET to open a different page?
delphi Run once
Increment Value