But it will fail unless your last_updated and survival_time values are unique on a per unique_id basis. (That is, for example, if one person has two different survival_time values that are both the same and both the maximum of all survival_time values, you will get confusing results.)