SELECT TOP 10 * 
FROM 
    (SELECT TOP 100 
         [ID], [SUMMARY], [NAME]   
     FROM 
         [db_test].[dbschema].[dborders]
     ORDER BY 
         [ID]) AS X 
ORDER BY [ID]
I got this query for pagination mechanism, how to query result from 10 to 20 record?
Because when I change first number from 10to 20 I get first 20 records, not records between 10 and 20.
Please write example query for me.
Edit: it's not SQL Server 2012
 
     
     
    