Re: Beginner's question

From: Roderick Manalac <rmanalac_at_oracle.COM>
Date: Sat, 27 Feb 1993 05:11:31 GMT
Message-ID: <1993Feb27.051131.2450_at_oracle.us.oracle.com>


In article <ecSp03Brcazg00_at_amdahl.uts.amdahl.com>, rtan@.uts.amdahl.com (Rick Tan) writes:
|> Hi,
|>
|> I need to retrieve a row from a table. The row selected must have the
|> largest value in a field. What SQL statement will do the trick?
|> Thanks in advance for any help.
|>
|> Rick

Sounds like you want to say

select * from T
where C = (select max(C) from T);

Roderick Manalac
Oracle Corp. Received on Sat Feb 27 1993 - 06:11:31 CET

Original text of this message