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

Home -> Community -> Usenet -> c.d.o.misc -> Re: a simple SELECT ?

Re: a simple SELECT ?

From: Antoine Brunel <antoinebrunel_at_yahoo.fr>
Date: Sat, 22 May 1999 17:43:06 +0200
Message-ID: <7i6j6f$3c5$1@minus.oleane.net>


>select * from deliveries
>where date > (select a.date from
> deliveries a
> where 9 = (select count(*) from deliveries b
> where b.id = <id>
> and b.quantity = <qty>
> and b.id = a.id and b.qty = a.qty
> and b.date > a.date)
> and a.id = <id> and a.qty = <qty>);

More simple:

select * from deliveries
where rownum<=10
order by date desc Received on Sat May 22 1999 - 10:43:06 CDT

Original text of this message

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