As new records are added to a table, I need to mark the old records for that 'level' as old. I can do this with a NOT IN, but NOT EXISTS does not work. I suspect it has to do with subquery correlation as explained here: As new records are added to a table, I need to