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!

find max date query

842894Feb 25 2011 — edited Feb 25 2011
I have two columns with data. Return latest paid date.

Period Paymentdate

feb2010 10/10/2010
feb2010 08/10/2010
feb2010 null
march null
aprl2010 11/10/2010
april2010 null
------------------
Need the following output. looking for latest paid date. when i do Max(paymentdate) it is returing two rows for feb with 10/10/2010 and null. but i don't want to see null row for february. but for march we don't have anything so we can return null.

Period Paymentdate

feb2010 10/10/2010
march null
aprl2010 11/10/2010


Please help

Vi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2011
Added on Feb 25 2011
11 comments
311 views