Answers for "fetch first 10 rows in oracle syntax"

SQL
12

fetch first 5 rows in oracle sql developer

-- 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 select first row

-- NOTE: This is for Oracle/PLSQL only

-- > EXAMPLE
select * 
from CONSUMERS
where ROWNUM <= 1

/*
-- > SYNTAX
select * 
from {yourTable}
where ROWNUM <= {number-of-rows}

*/
Posted by: Guest on January-21-2021

Code answers related to "fetch first 10 rows in oracle syntax"

Code answers related to "SQL"

Browse Popular Code Answers by Language