S 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
)
Podívejte se na ukázku
.
S 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
)
Podívejte se na ukázku
.