14
Answers

I want to delete all less two days before actual date

Photo of Ramon Quintana

Ramon Quintana

6y
629
1
hi, i need to left only records in my table with two days before actual date:
 
I try this:
 
delete from dbo.prueba where DATE = (select GETDATE()) -2
 
but NOTHING HAPPENED 
 
Please help me  

Answers (14)