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!

How to find max based on 2 columns.

robikFeb 24 2010 — edited Feb 24 2010
Hi I have a table where I have two numeric fields (date and time) )(thouse field are not date time format but numeric)

Column A represents date and column B represent time.

How would I find max value of column A and with results for A find Max for B.

example

A - - - - - - - - - -B
101010 - - - - - 202020
101011 - - - - - 202021
101012 - - - - - 202021
101010 - - - - - 202022
101012 - - - - - 202020
......... ...........


What I looking for is
A - - - - - - - - - - B
101012 - - - - - 202021

Thanks
This post has been answered by Solomon Yakobson on Feb 24 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2010
Added on Feb 24 2010
5 comments
1,444 views