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.

How to return only the max ID grouped by selected column (SQL)?

edited May 22, 2024 1:33PM in Reporting and Analytics for HCM 4 comments

Summary:

Content (please ensure you mask any confidential information):

I am working on an OTBI report that uses Advanced SQL to create the analysis. The reason for using this method is specific to the type of report I am working to build, which is joining information from a pending worker relationship (worker assignment real time) with the allocated checklist table (checklist real time).

See below for code snippet.

The challenge that I have encountered is I'd like for this analysis to return or filter only the MAX "Checklist Task Details"."Allocated Task Identifier" grouped by the "Checklist Task Details"."Task Name". This is because a user could have more than one of the same task (perhaps due to their previous employment), but the report always need to look at the latest information for their checklist.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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