aspvbnetnerd
Programmer
I have table and I have 2 columns that are very important and those column are FirstSerialNumber and last LastSerialNumber
The firstserialnumber should begin with last serialnumber + 1. If you could se with this example below this is okay.
Now we have problem that there is a gap in our table like this
With the example below you could se that there is a gap with number the number 25160 is missing.
I have to prevent the gap from happening next time a missing serialnumber is inserted.
Now to my question. Should I create a new table that holds last serialnumber or something else?
I know you have a better solution for the
Any ideas is appreciated.
/George
The firstserialnumber should begin with last serialnumber + 1. If you could se with this example below this is okay.
Code:
FirstSerialNumber LastSerialNumber
24888 25049
25050 25159
25160 25296
25297 25440
Now we have problem that there is a gap in our table like this
With the example below you could se that there is a gap with number the number 25160 is missing.
Code:
FirstSerialNumber LastSerialNumber
24888 25049
25050 25159
25297 25440
I have to prevent the gap from happening next time a missing serialnumber is inserted.
Now to my question. Should I create a new table that holds last serialnumber or something else?
I know you have a better solution for the
Any ideas is appreciated.
/George