or you could use the row_number() analytical function

HTH
Gert