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: help with query

RE: help with query

From: Manning, Stephen (calanais) <Stephen.Manning_at_calanais.com>
Date: Fri, 4 Aug 2000 17:31:03 +0100
Message-Id: <10579.113874@fatcity.com>


Why don't you try...

select * from table
where (id,date) in (select id, max(date) from table group by id)

Stephen

-----Original Message-----
From: Ashish Shah [mailto:ar_shah_at_yahoo.com] Sent: 04 August 2000 17:09
To: Multiple recipients of list ORACLE-L Subject: RE: help with query

Ohh that won't work.

Here is the actual situation.

id date balance_before balance_after amount  

 1      15-jul-00    50             100           50
 1      15-jul-00     50            100           50
 1      15-jul-00     100           300           200 

 2      15-jul-00     50            200           150
 2      15-jul-00    100            300         200 

so I need to see whole row..

like
 1 15-jul-00 100 300 200

.........

Thanks.

Received on Fri Aug 04 2000 - 11:31:03 CDT

Original text of this message

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