Solved

How to get only first rows of a recordset using Oracle DB

Posted on 2004-08-30
1
808 Views
Last Modified: 2012-06-21
Hi,

Under SQL Server 2000 there is the keyword TOP, that force SQL Server to get only the first X rows (SELECT TOP 10 * FROM MyTable 'retieive only the first 10 rows)...

Is there an equivalent keyword under Oracle DB.

Tanks

David
0
Comment
Question by:dcampillo
1 Comment
 
LVL 1

Accepted Solution

by:
Parag_Gujarathi earned 50 total points
ID: 11930608
the equivalent is select * from myTable where rownum <= 10

cheers
Parag
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now