home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.oracle
- Path: sparky!uunet!gumby!destroyer!fmsrl7!ef2007!wwm
- From: wwm@ef2007.efhd.ford.com (William Meahan)
- Subject: SQL*plus -- limiting maximum number of returned rows?
- Message-ID: <BtuK40.8By@ef2007.efhd.ford.com>
- Organization: EFHD Ford Motor Company
- Date: Mon, 31 Aug 1992 12:02:24 GMT
- Lines: 22
-
- In SQL*Plus (not embedded SQL!) is there any way of limiting the number
- of rows returned by a query?
-
- I am working on a report that is supposed to find the "top 5" items in
- a catagory. The query returns 0 or more rows based on the selection
- criteria, sorted in the appropriate order. Some queries return a dozen
- or more rows, but I'm only interested in the first 5.
-
- If I were using embedded SQL in a C program (or a perl script using
- oraperl) the solution would be trivial. For internal reasons, however,
- I'm stuck with using SQL*Plus.
-
- Any ideas?
-
-
- --
- Bill Meahan
- --
- Bill Meahan |EFHD Information Systems Staff
- Technical Consultant |Ford Motor Company
- wwm@ef2007.efhd.ford.com | +1 313 487 6122
- ...!fmsrl7!ef2007!wwm |I'm not paid to speak for Ford!
-