Most database management systems (DBMSs) provide us with a means of restricting the number of rows returned by a query to a fixed number of rows, or to a percentage of the data set. In many cases this is done with a LIMIT
clause (although some DBMSs provide other methods, such as SQL Server’s TOP
clause).
When it comes to DuckDB, the LIMIT
clause is what’s implemented for this functionality.