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
is there a way to boot to an attached drive
Subdatasheet not visible on click on expand
Setting up wireless on a Cisco 1811
Show gridlines in visio diagram saved as jpg file.
128GB USB Flash drives
Count/sum items between dates
powershell
MS SQL SP if ID = 1 then where price < 25.00
Treeview control that support thumbnails or images.
overriding jsf default message resources mechanism