Con NOT EXISTS
:
select t.* from tablename t
where col = 'Cancel'
and not exists (
select 1 from tablename
where creation_date < t.creation_date and col <> t.col
)
Vea la demostración
.
Con NOT EXISTS
:
select t.* from tablename t
where col = 'Cancel'
and not exists (
select 1 from tablename
where creation_date < t.creation_date and col <> t.col
)
Vea la demostración
.