I'm using PL / SQL and would like to know if you have any clause or sql script that is similar to the sql LIMIT clause, I've been searching here and found rownum < = X, but does not meet what I want to do. I'll try to explain
SELECT
select
codfil, coditprod, qtde
from
mov_lotevencto
order by
qtde desc;
Result
CODFIL CODITPROD QTDE
1 106 65303 6098,4
2 106 65303 5450,4
3 106 65303 3648,6
4 106 50635 3050,8
5 106 58973 2947,8
If I use rownum