Problem: I need write stored procedure(s) that will return result set of a single page of rows and the number of total rows.
Solution A: I create tw
Sorry, this one works with sorting:
SELECT * FROM (SELECT ROWNUM rnum,a.* FROM (SELECT * FROM "tabla" order by "column" asc) a) WHERE rnum BETWEEN "firstrange" AND "lastrange";