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
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madan ShekarRank #428 · 5.9K reputationPosted Oct 26, 2018, 2:53 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 24, 2018, 6:40 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 24, 2018, 7:02 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 24, 2018, 7:24 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 24, 2018, 7:57 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 24, 2018, 9:56 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 24, 2018, 7:28 PM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 25, 2018, 4:05 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 25, 2018, 4:34 AM EDT
Jayesh VaghasiyaRank #9,790 · 202 reputationPosted Oct 26, 2018, 3:20 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 26, 2018, 4:30 AM EDT
Suraj KumarRank #353 · 7.1K reputationPosted Oct 26, 2018, 4:32 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 26, 2018, 4:41 AM EDT
Ramon QuintanaRank #3,303 · 435 reputationPosted Oct 26, 2018, 4:42 AM EDT