Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There is a somewhat perverse way for aesthetes, the essence of which boils down to something like this
select * from table as a
left join table as b on a.added<b.added and a.category_id=b.category_id
left join table as c on b.added<c.added and b.category_id=c.category_id
where b.id is not null and c.id is null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question