Oracle query - get count along with min and max every 1m rows

时间:2019-03-19 14:55:56

标签: oracle11g

In Oracle query is it possible to get like the below table:

1,1,1000000
2,1000000,2000000
3,2000000,3000000
4,3000000,39012034

where the primary key(id) - has value starting from 1 to 39012034 rows.

I wanted sequential counter, start id, end id for every 1 million'th rows.

Is it possible using Oracle query? id is not sequentially increamental.This is for reference.

Thanks.

0 个答案:

没有答案