I have a very simple query like this:
SELECT Line, ID, Enum
FROM tab1
the result is something like this:
Line id enum
A 10 1
A 10 2
A 10 3
A 10 4
...
B 20 4
B 20 5
B 20 6
B 20 7
...
I want, for each Line/id, the anum start by 1, just like this:
Line id enum
A 10 1
A 10 2
A 10 3
A 10 4
...
B 20 1
B 20 2
B 20 3
B 20 4
...
Any Idea?