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 SELECT ?

Re: A simple SELECT ?

From: Gerard H. Pille <ghp_at_skynet.be>
Date: Fri, 21 May 1999 20:57:39 +0200
Message-ID: <7i4ajn$cq4$1@news0.skynet.be>


Create an index on customer_id and date, called eg. del_cusdat.

select /*+ index_desc(del_cusdat) */ date, quantity  from deliveries d
 where d.customer_id = ...
 and rownum <= 10;

ACT_at_BLUEGATE heeft geschreven in bericht <7i3sr8$js8$1_at_xenon.inbe.net>...
>It seems simple...
>
>I've a deliveries table with three columns: date, customer id, and
quantity.
>
>How can i retrieve in a query the last (in time) 10 deliveries for a
>specified customer ?
>
>Achille Carette, Bluegate
>act_at_bluegate.be
>
>
Received on Fri May 21 1999 - 13:57:39 CDT

Original text of this message

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