I have a table having column name
NAME
=========
GAURAV
GAURAV
AJAY
AJAY
===========
Now i want to use an existing sequence ,let say abc_seq,and i want to group the records such that ,it will give me the output group by name and each group having the same sequence number
The output which i would like to get is shown below
name group
==============
GAURAV 1
GAURAV 1
AJAY 2
AJAY 2
==============
I have tried this with analytical function ,but how to use sequence in the query having analytical function
Dense_rankwill do the work.Output:
Here is a DEMO