Microsoft
Software
Hardware
Network
Question : Delete rows older then todays date
Hi there
I have a table called Books and a column called Date_Updated (which contains a data field)
I need a DELETE statement that will delete all rows where Date_Updated is less then todays date.
Thanks
Answer : Delete rows older then todays date
DELETE FROM Books
WHERE Date_Updated < DateAdd(dd, DateDiff(dd, 0, GetDate()), 0)
Random Solutions
Ghost Image
how to get ranch dressing out of a cotton rug
Skype install
Why should 1:1 Relationships be used for Entities with Subsclasses?
Users can't visit yahoo.com, but servers can??
code help needed
Function needs help with if this or this then that
Best practice for Exchange 2010 on ESXi 4.0 connecting to Equallogic SAN
Red light on hard drive/ Memory Parity Error, what should I do?
Windows SBS 2003 - Exchange / Active Directory Group