hi
i neet to numerate my table from 1 to when ID change.
for example i have this table:
ID | Name
======
11 | AA
11 | BB
11 | CC
11 | DD
22 | EE
22 | FF
33 | GG
33 | HH
33 | AA
33 | DD
44 | ZZ
and i need to see this:
NUM | ID | Name
============
1 |11 | AA
2 |11 | BB
3 |11 | CC
4 |11 | DD
1 |22 | EE
2 |22 | FF
1 |33 | GG
2 |33 | HH
3 |33 | AA
4 |33 | DD
1 |44 | ZZ
how to do it ?
thanks in advance
i neet to numerate my table from 1 to when ID change.
for example i have this table:
ID | Name
======
11 | AA
11 | BB
11 | CC
11 | DD
22 | EE
22 | FF
33 | GG
33 | HH
33 | AA
33 | DD
44 | ZZ
and i need to see this:
NUM | ID | Name
============
1 |11 | AA
2 |11 | BB
3 |11 | CC
4 |11 | DD
1 |22 | EE
2 |22 | FF
1 |33 | GG
2 |33 | HH
3 |33 | AA
4 |33 | DD
1 |44 | ZZ
how to do it ?
thanks in advance