Usually there is a column in a unique table.
You can use the method below to add a column to your result set if you do not want to add an additional column to your table.
select RANK () OVER (ORDER BY), T. * SEQ from table T;
This will give you the output, for example:
1 a xx yy 2 b xx yy 3 c xx yy
source
share