Check out example codes for "sql server pagination". It will help you in understanding the concepts better.

Code Example 1

SELECT col1, col2, ...
 FROM ...
 WHERE ... 
 ORDER BY -- this is a MUST there must be ORDER BY statement
-- the paging comes here
OFFSET     10 ROWS       -- skip 10 rows
FETCH NEXT 10 ROWS ONLY; -- take 10 rows

Learn ReactJs, React Native from akashmittal.com