SQL Oracle приобретает только последние результаты
select * from table_name ORDER BY primary_id DESC FETCH FIRST 1 ROWS ONLY;
Jimmy McGill
select * from table_name ORDER BY primary_id DESC FETCH FIRST 1 ROWS ONLY;