For getting the next 10 rows just run this query:
SELECT * FROM TableName ORDER BY id OFFSET 10 ROWS FETCH NEXT 10 ROWS ONLY;
Key points to consider when using it:
ORDER BY
is mandatory to use OFFSET
and FETCH
clause.OFFSET
clause is mandatory with FETCH
. You can never use, ORDER BY
…
FETCH
.TOP
cannot be combined with OFFSET
and FETCH
in the same query
expression.