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: find all latest value = 'X'

Re: find all latest value = 'X'

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

You may try this:

select a.personid, a.ratingdate
from rating_table a
where a.rating = 'A'
and not exists (

   select null
   from rating_table b
   where b.person_id = a.person_id
   and b.ratingdate > a.ratingdate)
/

-- 

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