I have a table that’s like this
rank continuationofrow
1 row
2 row
3 row
4 row
4 row
4 row
I’m trying to identify the previous rows rank number within an Oracle statement. Any help is greatly appreciated. I’ve searched the internet and haven’t found much.
You must have another column that establishes the order of the rows with the same rank, otherwise the concept of “previous row” is meaningless. Let’s suppose you do:
No you can use an analytic function: