Answers for "oracle sql limit results"

SQL
11

oracle sql limit results

-- Oracle <= 11g 
SELECT * FROM ( SELECT * FROM emp ORDER BY sal DESC ) WHERE ROWNUM <= 5;
	
-- Oracle 12c +
SELECT * FROM emp ORDER BY sal DESC FETCH FIRST 5 ROWS ONLY;
Posted by: Guest on January-31-2021
1

oracle limit rows

SELECT * 
FROM   sometable
ORDER BY name
OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY;
Posted by: Guest on May-15-2020
0

sql oracle limit

SELECT * 
FROM   sometable
ORDER BY name
OFFSET 20 ROWS FETCH NEXT 10 ROWS ONLY;
Posted by: Guest on September-15-2021
0

limit rows after order by oracle

oracle limit rows
Posted by: Guest on October-08-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language