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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL question: SELECT and GROUP BY in Oracle8

Re: SQL question: SELECT and GROUP BY in Oracle8

From: Matti Teppo <matti.teppo_at_nospam.deio.net>
Date: Wed, 23 May 2001 17:10:32 +0200
Message-ID: <3B0BD2E7.38C832B8@nospam.deio.net>

Problem solved! In comp.databases.theory, J Hidders kindly gave the following solution. It works on both platforms:
SELECT *
FROM revisions r1
WHERE r1.rev IN ( SELECT MAX(r2.rev)

                  FROM revisions r2
                  WHERE r1.firstid = r2.firstid );

Matti

--
Received on Wed May 23 2001 - 10:10:32 CDT

Original text of this message

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