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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to select and display 10 records at a time from a table using sql query - Solved

Re: How to select and display 10 records at a time from a table using sql query - Solved

From: Rukmini Devi <rukmini_at_indbrain.com>
Date: Thu, 30 Aug 2001 03:24:36 -0700
Message-ID: <F001.0037CA35.20010830030522@fatcity.com>

your query is equivalent to ,
  select * from tablename where rownumnum <=10; ----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Thursday, August 30, 2001 2:55 PM
using sql query - Solved

> Dear all,
>
> Here is the query to do the same:
>
> select outer.* from(select inner.*,ROWNUM as Query_Rownum from
> (select * from &tablename)inner where Rownum <=&to) outer where
> Outer.Query_Rownum>=&from
> /
>
> Hope this helps!
>
> Regards,
>
> Ranganath
>
>
>
> DISCLAIMER: This correspondence is confidential and intended for the named
> recipient(s) only. If you are not the named recipient and receive this
> correspondence in error, you must not copy, distribute or take any action
in
> reliance on it and you should delete it from your system and notify the
> sender immediately. Unless otherwise stated, any views or opinions
expressed
> are solely those of the author and do not represent those of Subex Systems
> Limited.
>
> www.subexgroup.com
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Ranganath K
> INET: ranganathk_at_subexgroup.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rukmini Devi
  INET: rukmini_at_indbrain.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Aug 30 2001 - 05:24:36 CDT

Original text of this message

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