MySQL Forums
Forum List  »  General

Re: filtering a rows based on latest date which has similar column values except date
Posted by: Peter Brawley
Date: October 05, 2017 12:11PM

Is this what you mean?

select p.candidateId, p.amount, c.firstname, max(p.paymentdate)
from payment p
join candidate c using(candidateId)
group by p.candidateId, p.amount, c.firstname;

Options: ReplyQuote


Subject
Written By
Posted
Re: filtering a rows based on latest date which has similar column values except date
October 05, 2017 12:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.