Avatar of Mahmoud Al Jundi
Mahmoud Al Jundi
Flag for Jordan

asked on 

Find missing serials

Hello,

How to find a missing sequence Using oracle 8i from a table ?  the purpose I need to assign available sequences automatically for customer accounts, as below example :

Account_no
1
2
4
5
8

results:
1) The result of the query is 3 , when (3) inserted in the table, query should get 6..etc.
2) Also how can I find all missing sequences , result : 3,6,7 using one select?

Thank You
DatabasesOracle DatabaseSQL

Avatar of undefined
Last Comment
slightwv (䄆 Netminder)

8/22/2022 - Mon