That window function is not really an answer to the question. The question was why it is not possible to apply the same logic as you use to determine the value for the intermediate "FLAG" column instead of applying the logic directly to the deletion?
↧