Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to generate serial number in group by sql

user10775411Feb 16 2009 — edited Feb 16 2009
I need the query output with record serial number by a group,

Sr No by dept Dept Id Emp Name
========= ===== =======
1 10 aaaaa
1 11 abndddd
2 11 sdfffffff
3 11 s sdfe
4 11 ggg
1 12 dDEWQ
1 13 xccc
2 13 DSAFG

How to generate the first column in the above output using sql?

Thanks in advance
Shrinivas
This post has been answered by Karthick2003 on Feb 16 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2009
Added on Feb 16 2009
1 comment
6,644 views