Met 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
)
Zie de demo
.
Met 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
)
Zie de demo
.