Query to extract employee grade ladder in the assignment page — Cloud Customer Connect
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: Oracle Cloud SCM and Purchasing

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!