Jump to content

Finding amt associated with most recent payment


ljm

This topic is 6342 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi -

I have a field called max(Trans_Date) which returns the most recent transaction posted, but I also want to return the amount associated with that record. I have tried (and failed) a few different ways.

If the related table has only one record I get the right amount via if(max(trans_date),trans_amt), but if I have multilple records I always get the oldest amt, or presumably the first found in the table. What am I doing wrong?

Thanks

Link to comment
Share on other sites

This topic is 6342 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.