SyntaxFix
Write A Post
Hire A Developer
Questions
You can use ROW_NUMBER() function to get what you want:
ROW_NUMBER()
SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY id) RowNr, id FROM tbl) t WHERE RowNr BETWEEN 10 AND 20