EDIT : modified based on additional information added to the question.
select p.id, p.from_date, p.price from (select id, from_date, price, row_number() over (order by id desc) as r from prices) p where pr <> 1 order by p.id, p.from_date
source share