Forum Moderators: phranque
select field1, rownum() from mytable;
field1 rownum
------ ------
50 1
25 2
77 3
333 4
The reason I want this is so that I can say:
select avg(field1) from mytable where rownum <= 5;
And it'll average the first 5 rows. Or is there another way to do the average?