Use standard SQL row limiting syntax.
Section: Sorting and Limiting
Fetch first rows
sql
sql
SELECT *
FROM employees
ORDER BY salary DESC
FETCH FIRST 10 ROWS ONLY;Explanation
Supported in many modern SQL engines and part of the SQL standard.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Sorting and Limiting