Re: Get 10 latest customers
From: My-Phuong L Tran <mtran2_at_osf1.gmu.edu>
Date: 1995/05/13
Message-ID: <3p2lvu$ibr_at_portal.gmu.edu>#1/1
Date: 1995/05/13
Message-ID: <3p2lvu$ibr_at_portal.gmu.edu>#1/1
In article <3p09h1$9pl_at_ns1.unicomp.net> thrash_at_delphi.onramp.net (David R. Thrash) writes:
>
>
>This is database 101 - n'est pas?
>
>Select Customer_Code
> from BOOKING b1
> where 10 <= (select count(*)
> from BOOKING b2
> where b2.Transaction_date > b1.Transaction_date)
>/
>
After some slight corrections,
Select Customer_Code
from BOOKING b1
where 10 >= (select count(*)
from BOOKING b2 where b2.Transaction_date >= b1.Transaction_date)
Best,
Ted Karas Received on Sat May 13 1995 - 00:00:00 CEST