date - Keep 2 years of records in table when reference column is in a string format -
i want keep 2 years of records in table client wants keep reference column(referenceperiod) in string format.
so it's working when column in date format:
delete
dbo.gsufverification_testmylene
referenceperiod < dateadd(year,-2,getdate())
but can't make work converting column upfront. feel stupid right :-(
can me out please?
Comments
Post a Comment