Answers for "rownum in sql query"

SQL
0

sql rownum

Returns results where the row number meets the passed condition.
Example: Returns the top 10 countries from the countries table.
SELECT * FROM countries
WHERE ROWNUM <= 10;
Posted by: Guest on January-07-2021
0

rownum in sql

SELECT ROWNUM, a.*
FROM (SELECT customers.*
      FROM customers
      WHERE customer_id > 4500
      ORDER BY last_name) a;
Posted by: Guest on September-24-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language