Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: a simple question

Re: a simple question

From: Randy DeWoolfson <randyd_at_cais.com>
Date: Tue, 30 Nov 1999 14:01:43 -0500
Message-ID: <38441F17.AF6A025B@cais.com>


first ask yourself what is the meaning of "the first record"...

if it means only return one record, i dont care which one, then use rownum.
otherwise you may be able to use DISTINCT to reduce the result set, or some extra filters in the WHERE clause.

randy

Parvinder Singh wrote:
>
> hi all
>
> if i execute a querry and if that querry's output is a set of records
> ..so it will return back all the records but i want the querry to return
> just the first record from that set of records and not the remaining
> records ....any idea ?
>
> Thanks & Regards
> Parvinder
Received on Tue Nov 30 1999 - 13:01:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US