Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select row with Max Value

user10768199Jul 20 2010 — edited Jul 20 2010
Hi

Say I have a table with the following -

id-----------date-------------value
001----01-01-2010-------50
002----01-01-2010-------52
003----01-01-2010-------51
004----01-01-2010-------62

I want to get the id, date and value of the row with the max value...

id-----------date-------------value
004----01-01-2010-------62

Using select max(value) from table, only gives me the value 62, I want to know the id and date for that row aswell.

Whats the easiest and best way to get this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2010
Added on Jul 20 2010
7 comments
119,116 views