I Could remove records from today and yestarday from a table that has a DATE Field using this sentence:
DELETE FROM yourTable WHERE DATEDIFF(day,getdate(),thatColumn) < -1
But now I need to remove some records from a table VFS_INTRESS than doesn´t has a DATE field,
for example this:
I need to left only records from today and yesterday, how can do that?
Thanks...


Suraj KumarRank #353 · 7.1K reputationPosted Oct 29, 2018, 4:36 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 26, 2018, 9:47 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 26, 2018, 9:05 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 29, 2018, 4:27 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 29, 2018, 4:30 AM EDT
Sourav MukherjeeRank #850 · 2.6K reputationPosted Dec 6, 2018, 3:52 PM EST