Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: help with query
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.