I ended up using this method. I had tried something similar except I had 'where s.rvyrmo = i.rvyrmo'.
The grouping really didn't work out because I had other fields that I didn't show in my example that I needed to select.

Thanks everyone for the help.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of D*B
Sent: Friday, January 18, 2013 2:14 AM
To: Midrange Systems Technical Discussion
Subject: Re: problem with max date

FROM savectl00 s
where RVYRMO =
(select max(RVYRMO)
from savectl00 i
where s.SCHED = i.SCHED )


This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.

NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact