id current stage previous stages
1 06 05
1 06 03
2 04 03
2 04 02
suppose there are 5 stages of an id.(02,03 etc) An id should goes through each of the stages. Here in example Id num 1 skips 04 and 02 stage but id num 2 passes through all.so it should be current stage -1 and -2 etc...
i have to identify such ids which skips stages. need to do it R or hadoop query.