Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Select max
Hi all,
my question/problem is:
I want to select a row from a table where one of its field has the maximum value in that table. For example:
Table FOO
id number afield varchar2 bfield date
How can I write an sql statement that selects the whole row in which bfield is max ?
Thanks in advance, Leonardo
-- Posted via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Mon Jul 22 2002 - 05:19:59 CDT