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
)
डेमो
देखें .
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
)
डेमो
देखें .