Hi,
On Oracle 8.1.6 on Win 2000, I have one query related to rownum. For ex. One table has Deptno, If I use Rownum with Deptno It shows me .....
Rownum Deptno
------ ---------
1 10
2 10
3 20
4 20
5 30
6 30
Actually I want output following way....When Deptno changes, Rownum should reset.
Rownum Deptno
------ ---------
1 10
2 10
1 20
2 20
1 30
2 30
Please help me in this.
Thanks & Regards,
Shailesh