You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

OTBI - How to get the records with MAX effectivedate

edited Oct 18, 2017 3:21PM in Reporting and Analytics for HCM 4 comments

Content

How do I query all the records with  MAX effectivedate from the below table. After running the query on the below table I should have only the last 2 rows which is having the max effective date of 7/25/17

Person NUmber Effective Date
100010 7/15/17
100015 7/18/17
100020 7/11/17
100021 7/25/17
100022 7/25/17

Below query seems to throw error

select "Payroll - Payroll Balances Real Time"."Worker"."Person Number" ,   "Payroll - Payroll Balances Real Time"."Balance Value Details"."Effective Date" 
        from "Payroll - Payroll Balances Real Time"
   where 
    "Payroll - Payroll Balances Real Time"."Balance Value Details"."Effective Date" = 
   SELECT MAX("Payroll - Payroll Balances Real Time"."Balance Value Details"."Effective Date") FROM "Payroll - Payroll Balances Real Time"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!