robert030975
MIS
- Oct 17, 2006
- 227
HI
I have built table to which I have created an inital composite key
a,b ab
a,b ab
b,c bc
b,c bc
now I was wondering how you would do a count that I can reset on compkey
if I do SELECT row_number() over (order by COMKEY), COMKEY from table
I have ab 1, ab 2, bc 3, bc 4 but really want
ab,1
ab,2
bc,1
bc,2
Please can someone help
Many Thanks
I have built table to which I have created an inital composite key
a,b ab
a,b ab
b,c bc
b,c bc
now I was wondering how you would do a count that I can reset on compkey
if I do SELECT row_number() over (order by COMKEY), COMKEY from table
I have ab 1, ab 2, bc 3, bc 4 but really want
ab,1
ab,2
bc,1
bc,2
Please can someone help
Many Thanks