How do I select only the first 10 results of a query?
I would like to display only the first 10 results from the following query:
SELECT a.names,
In standard SQL you can use:
... FETCH FIRST 10 ROWS ONLY
This is supported in DB2, PostgreSQL and Oracle 12.1 (and later)