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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL question

Re: SQL question

From: Paul Dorsey <DORSEY_at_ENIGMA.RIDER.EDU>
Date: Fri, 12 Jan 1996 18:58:00 -0400
Message-Id: <9601130015.AA12522@alice.jcc.com>


Interesting question.
I think this might work:
select ename, value1, value2, systime
from mytable
where ename, systime in (

        select ename, max(systime)
        from mytable
        group by ename)

If the emp has two entries on the same day it won't work.

But you didn't say how you wanted to handle that case. Paul Dorsey
Dulcian Inc. Received on Fri Jan 12 1996 - 19:15:06 CST

Original text of this message

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