Hi !
I have a database with invoices. How do i find invoices that are skipped from beeing entered into the db (based on the invoice number )
E.g:
invoice_number | amount | client_id | etc. |
100---------------------|--150----|--128------|------|
101---------------------|--140----|--124------|------|
102---------------------|--150----|--125------|------|
103---------------------|--120----|--128------|------|
105(should be 104)------|--115----|--156------|------|
106---------------------|--150----|--124------|------|
107---------------------|--160----|--121------|------|
How do i detect invoice numbers that have been skipped?(in this case =104=)
thanks!