Pseudocolumn -
ROWNUM
For each row
returned by a query, the ROWNUM pseudocolumn returns a number indicating the
order in which Oracle selects the row from a table or set of joined rows. The
first row selected has a ROWNUM of 1, the second has 2, and so on.
You can use
ROWNUM to limit the number of rows returned by a query, as in this example:
Example :
SQL>
select rownum,name from employee;
ROWNUM NAME
----------
----------
1 John
2 Devy
3 Paul
4 Raj
5 Chetan
6 Jayne
7 Senthil
8 Jeya
8 rows
selected.
SQL>
select rownum,name from employee order by name;
ROWNUM NAME
----------
----------
5 Chetan
2 Devy
6 Jayne
8 Jeya
1 John
3 Paul
4 Raj
7 Senthil
8 rows
selected.
SQL>
select rownum,name from employee where rownum < 5;
ROWNUM NAME
----------
----------
1 John
2 Devy
3 Paul
4 Raj
SQL>
select rownum,name from employee where rownum = 5;
no rows
selected
Evosys has implemented mobile based Oracle EBS solution, acton, at Nawras, Oman. The project kicked off on 20th May 2012 and went live on 22nd Sept 2012.
ReplyDeleteAbout Evosys: Evosys is a premium Oracle Partner providing consulting services for implementation and maintenance of Oracle Applications. We are a market-focused, process-centric organization that develops and delivers innovative solutions to our customers, consistently outshining other market players. We are fully committed to deliver quality services and are proud of our outstanding success in delivering 100% successful projects for all our 50+ global customers over a period of 6 years. We are known for combining speed of implementation with the quality of delivery. We believe in industry specialization and have strong references in implementation of end to end ERP solutions for verticals like Healthcare, Public Sector, Education, Construction, Shipping, Logistics, Manufacturing and Distribution.
For any Oracle Service, Business Partnerships, Sales Referrals, Collaborations & Tie ups, Please contact business@evosys.co.in & we shall contact you immediately.
Contact Business@evosys.co.in