D
doyle60
If I have a query where two of the columns are as follows:
GroupID Style
1876 S100
1876 S101
1876 S107
8238 P111
8238 P111
5211 W500
5211 W500
7772 JS103
7772 JS103
7772 JS105
7772 JS105
7772 JS105
How do I get a field to return a sequence number, beginning again at
the number 1 with every change in the Group ID? That is, how do I get
the query to return this:
GroupID Style SeqNo
1876 S100 1
1876 S101 2
1876 S107 3
8238 P111 1
8238 P111 2
5211 W500 1
5211 W500 2
7772 JS103 1
7772 JS103 2
7772 JS105 3
7772 JS105 4
7772 JS105 5
I have searched the Web and cannot find how to do such. I have done
this sort of thing for sequencing the whole of one query's results, but
not something like this. (This question was asked on another thread
but never answered). Thanks.
Matt
GroupID Style
1876 S100
1876 S101
1876 S107
8238 P111
8238 P111
5211 W500
5211 W500
7772 JS103
7772 JS103
7772 JS105
7772 JS105
7772 JS105
How do I get a field to return a sequence number, beginning again at
the number 1 with every change in the Group ID? That is, how do I get
the query to return this:
GroupID Style SeqNo
1876 S100 1
1876 S101 2
1876 S107 3
8238 P111 1
8238 P111 2
5211 W500 1
5211 W500 2
7772 JS103 1
7772 JS103 2
7772 JS105 3
7772 JS105 4
7772 JS105 5
I have searched the Web and cannot find how to do such. I have done
this sort of thing for sequencing the whole of one query's results, but
not something like this. (This question was asked on another thread
but never answered). Thanks.
Matt