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: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

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!