I need to have a method in place to delete old records off of a staging table. I have this code that works for records that are over 4 months old
delete from vcsv_payment_stage
where time_moved < dateadd(mm, -4, getdate())
I want to extend this to years.. Is it just yy instead of mm??
delete from vcsv_payment_stage
where time_moved < dateadd(mm, -4, getdate())
I want to extend this to years.. Is it just yy instead of mm??