I got below query from another post which selects 100 rows from every 2000 rows. Like this: 1-100,2001-2100,4001-4100,6001-6100,8001-8100 and so on.
SELECT * FROM (SELECT t.*,ROWNUM AS rn FROM(SELECT * FROM your_table ORDER BY your_condition) t)WHERE MOD( rn - 1, 2000 ) < 100;
Now I want to select my data exponentially.Such that it will select 100 rows from first 1000 rows, then from next 2000 rows, then from next 4000 rows. Like this: 1-100,2000-2100,4000-4100,8000-8100,16000-16100 and so on. The idea is to scan rows with a specific pattern.