delete from item where lastsold is null and lastupdated < GETDATE() - 1000 and quantity = 0 and lastreceived is null