Link to home
Start Free TrialLog in
Avatar of tbaseflug
tbaseflugFlag for United States of America

asked on

ROW_NUMBER() - Start over for every change in value

I havea table like
acct_no    code
1111         1234
1111         2234
2222        33333
3333       88888
3333      77777

And need to through a row_number in - but start it over with each new acct_no - so
acct_no    code   row
1111         1234     1
1111         2234     2
2222        33333    1
3333       88888     1
3333      77777      2
ASKER CERTIFIED SOLUTION
Avatar of cyberkiwi
cyberkiwi
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial