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 Max Date with More than One Result

583143Mar 23 2009 — edited Mar 23 2009
Hello;

I need to write a query that returns the max date for a specific transaction which is no problem at all, but my problem occurs, when i have multiple transactions that have the same max trans date.


Can someone help me write something that will return only one record from a result set that has more than one record

Example:

TRAN_ID --- ACT# --- TRANS_DATE
- 272 - 1111111 - 10/29/1999 00:00:00
- 273 - 1111111 - 10/29/1999 00:00:00
- 274 - 1111111 - 10/29/1999 00:00:00
- 275 - 1111111 - 10/29/1999 00:00:00
This post has been answered by Hoek on Mar 23 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2009
Added on Mar 23 2009
18 comments
4,552 views