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: %%How to <efficiently> do: SELECT MAX(Date)...WHERE Date < myParamDate

Re: %%How to <efficiently> do: SELECT MAX(Date)...WHERE Date < myParamDate

From: William LEE <william_at_alumni.cuhk.edu.hk>
Date: 1997/10/13
Message-ID: <61tjpg$1ma@hpg30a.csc.cuhk.edu.hk>#1/1

declare

   cursor cu_max_rate is
   select rating
   from rating
   order by rdate desc;

   max_rate number;
begin

   open cu_max_rate;

   fetch cu_max_rate
   into max_rate;

   close cu_max_rate;
end;

-- 

William WW LEE.
E-Mail: william_at_alumni.cuhk.edu.hk
***********************************
Received on Mon Oct 13 1997 - 00:00:00 CDT

Original text of this message

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