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
Can't email more than one invoice from Quickbooks Pro 2006 in Outlook
Access - SQL user parameter entry
Gigabit Lan only connecting at 10Mbps... Help!
Strip out ’s in mySQL query | XML Parsing Error: undefined entity
Intermittent internet connectivity for PCs in small remote office
Pass recordset from local sql server to remote sql server using access adp
How can I copy a range of cells in a worksheet to another area in the same worksheet based off of the value of a cell in Excel 2007?
Reverse DNS does not match SMTP Banner
Cisco Unity Express to Trigger MWI on overlay DN
Exhange 2003 mailbox permissions