Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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.

Query to extract employee grade ladder in the assignment page

edited May 30, 2024 12:42PM in Reporting and Analytics for HCM 3 comments

Summary:


Content (please ensure you mask any confidential information):

Hello experts,

we built the following query to retrieve the employee current grade ladder.

However, the query returns more rows for the same employee, while we expect to extract just the current one (one row for each employee).

What's wrong with this query? How could I adjust it?

SELECT DISTINCT GL.NAME as BAND, PN.DISPLAY_NAME as WORKER_NAME, ASG.ASSIGNMENT_NUMBER, PEOPLE.PERSON_NUMBER
FROM PER_ALL_ASSIGNMENTS_M ASG
INNER JOIN PER_GRADES_IN_LADDERS_F GIN ON (ASG.GRADE_ID=GIN.GRADE_ID AND TRUNC(SYSDATE) BETWEEN TRUNC(GIN.EFFECTIVE_START_DATE) AND TRUNC(GIN.EFFECTIVE_END_DATE))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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