DELETE FROM dbo.rrheartland_accounthistory WHERE lastupdated < GETDATE() - 365