i have some scenarios and i need check check sequence for that , i need sequence for following values
This is the actual data which is presented in sql db
- 10001 10001
- 10002 10002
- 10003 10003
- 10005 10005
- 10006 10006
- 10008 10008
- 10009 10009
- 10010 10010
so i need a range for above values like this
- 10001 10003
- 10005 10006
- 10008 10010
and if i am adding new row in sql
- 10004 10004
after insert above row, actual data which is presented in sql db
- 10001 10001
- 10002 10002
- 10003 10003
- 10004 10004
- 10005 10005
- 10006 10006
- 10008 10008
- 10009 10009
- 10010 10010
then the range will be
- 10001 10006
- 10008 10010
and if i am adding new row in sql
- 10007 10007
after insert above row, actual data which is presented in sql db
- 10001 10001
- 10002 10002
- 10003 10003
- 10004 10004
- 10005 10005
- 10006 10006
- 10008 10008
- 10007 10007
- 10009 10009
- 10010 10010
then the range will be
- 10001 10010
can anyone please help to solve this issue