Is it possible to write a query that can determine if a list of records are in sequential order?
ie 1,2,3,4
what i want to do is find out of say 1000 records if there is are some free sequential #s. the sequential #s are then given to some other records for processing. also the user selects how many sequential records they need - and they can also put in the # they want to start at - or just let the system find the sequence. i have to be able to look for the sequence because the user can also reserve #s they want or need. so that could leave #s in the middle that are not used yet.
any help appreciated! =D
ie 1,2,3,4
what i want to do is find out of say 1000 records if there is are some free sequential #s. the sequential #s are then given to some other records for processing. also the user selects how many sequential records they need - and they can also put in the # they want to start at - or just let the system find the sequence. i have to be able to look for the sequence because the user can also reserve #s they want or need. so that could leave #s in the middle that are not used yet.
any help appreciated! =D