I would like to create a row counter with Oracle SQL. This row counter should start from 1 till 5 and then should restart again from 1.
Like:
ORDER, ROW_COUNTER
----- -----------
ORDER1,1
ORDER2,2
ORDER3,3
ORDER4,4
ORDER5,5
ORDER6,1
ORDER7,2
ORDER8,3
ORDER9,4
ORDER10,5
ORDER11,1
ect...
Do you have any idea?