Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get data in steps

Status
Not open for further replies.

pramodh

Programmer
Apr 5, 2002
3
IT
How to write a query which should give only first few (say 5) records out of any number returned. Assumme a select query returning 100 records. But only the first five have to given.
 
You can use ROWNUM in your query as follows

SELECT ...
WHERE ROWNUM <= 5

There is a recent thread on this subject in this forum which I will try to locate...

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top