I sometimes need to query SQL Server 2000 and paginate the results however there is only the TOP
clause that limits the number of records returned without an offset. Other banks like MySQL or PostgreSQL have this and query would look like this:
SELECT * FROM tabela LIMIT 0, 50
ou
SELECT * FROM tabela LIMIT 50, OFFSET 0
How can I work around this problem or emulate this functionality in SQL Server 2000.