Inspectopedia
 
2024.3

Multiple row limiting/offset clauses in queries

Warning
New
Last modified: 03 December 2024

Reports usages of multiple row limiting clauses in a single query.

Example (Microsoft SQL Server):

The SELECT TOP clause is used to specify that only 1 record must be returned. The FETCH clause specifies the number of rows to return after the OFFSET clause has been processed. But as we already have the SELECT TOP limiting clause, the FETCH clause might be redundant.