How to implement pagination queries in Oracle, using (1) analytic functions (2) Oracle’s row limiting clause to fetch N rows from a given offset.
Analytic Functions
Oracle analytic functions are extensions to SQL for computing aggregates based on a group of rows. Analytic functions can appear in the SELECT or ORDER BY clause, with an optional windowing clause.