how to select top 5 rows in sql code example
Example 1: select top 10 rows in sql
SELECT TOP 10 * FROM Customers;
Example 2: rownum in sql
SELECT ROWNUM, a.*
FROM (SELECT customers.*
FROM customers
WHERE customer_id > 4500
ORDER BY last_name) a;