I'm trying to do something like :
SELECT * FROM table LIMIT 10,20
Or
SELECT * FROM table LIMIT 10 OFFSET 10
But using SQL Server
The only solution I found looks like overkill:
SELECT * FROM (
SELECT *, ROW_NUMBER() OVER (ORDER BY name) as row FROM sys.databases
) a WHERE row > 5 and row <= 10
Is there another way for me to do that ?