It is very frustrating working with this data. In one interval we may have a certian product being created. It may have a length of 20 feet, then we may do one with a length of 40 feet, then we may go back and do 2 orders at 20 feet again. I cannot group on all the variables because they may group more than one row that should not be done. I guess it really needs to step throuh the records and mark then individually if they are the same sequentially. I'll ahve to do this with another table since I cannot change this data. O well, thanks for everyones help.