I was able to complete the effective dating needed for max row by doing the following:
First I set up the main query establishing the basic filters and fields to display from the core table used for the information .
Second I added two subqueries; the first subquery was used to get the Max value for the Effective Date field from this same table. I linked the subquery to two keys; Employee ID and Employee Record which allows for multiple employee records for the same Employee ID. Since this table can have future dated records I added a where clause to select the maximum Effective Date that was less than or equal to the current date.
The second subquery was to get the Max value for the Sequence Number as there can be multiple rows with the same Effective Date field. I linked this second subquery to the same Employee ID and Employee Record field but added a match on the Effective Date as well with the value for this pulled from the first subquery.
I then used the where to clause in the main query to point to the values in the Max Effective Date and Max Sequence Number fields established in the two subqueries.
It provided the same results as the current report generated out of the PeopleSoft Query tool.
Any inquiries, I’d be happy help contact me at firstname.lastname@example.org.