I want to generate the serial no.s
e.g.
I have,
NID
-----
ABD90
BGJ89
HSA76
and I want,
ID NID
---------
1 ABD90
2 BGJ89
3 HSA76
What code should I run for this outcome? Please help me.
I want to generate the serial no.s
e.g.
I have,
NID
-----
ABD90
BGJ89
HSA76
and I want,
ID NID
---------
1 ABD90
2 BGJ89
3 HSA76
What code should I run for this outcome? Please help me.
Since you tagged SAS, I'll answer with SAS.
Based on your question, getting that result from that input would be as simple as this
or
In pure Oracle you would do this
However you might want to throw on ORDER BY in there because you'll likely get different results every time you run that.