Hello...I'm new to this forum...I hope you can help me.
I need to come up with a way to derive field X (see below) in a query.
For each change in field A, Set X=1
For each change in field B, X=X+1
The below table shows what the query results should look like for field X. Thanks for your help!
A X B
A14-040 1 971
A23-020 1 676
A35-032 1 300
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 3 500
B45-031 1 776
B45-031 1 776
C27-010 1 776
C27-010 2 999
C27-010 2 999
I need to come up with a way to derive field X (see below) in a query.
For each change in field A, Set X=1
For each change in field B, X=X+1
The below table shows what the query results should look like for field X. Thanks for your help!
A X B
A14-040 1 971
A23-020 1 676
A35-032 1 300
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 2 776
A35-032 3 500
B45-031 1 776
B45-031 1 776
C27-010 1 776
C27-010 2 999
C27-010 2 999