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,
Depends on your RDBMS
MS SQL Server
SELECT TOP 10 ...
MySQL
SELECT ... LIMIT 10
Sybase
SET ROWCOUNT 10 SELECT ...
Etc.