Query to Identify Reversed Termination Cases in Oracle HCM
This SQL query detects employees whose termination has been reversed in Oracle HCM Cloud. It compares versions of PER_PERIODS_OF_SERVICE records, identifying those with earlier entries showing a termination date and later updates removing it. The query returns the person ID, last update date, and person number of affected employees.