I need to number the rows so that the row number with the same ID is the same. For example:
Oracle database. Any ideas?
I need to number the rows so that the row number with the same ID is the same. For example:
Oracle database. Any ideas?
Copyright © 2021 Jogjafile Inc.
Use the
DENSE_RANK
analytic function:Which, for the sample data:
Outputs:
db<>fiddle here