DataGrip
 
Get DataGrip
You are viewing the documentation for an earlier version of DataGrip.

Code Inspection: Multiple row limiting/offset clauses in queries

Last modified: 13 May 2022

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.