Free Fusion SQLHuman CapitalRead-only

Recent terminations (last 180 days)

Employees that left in the last 180 days — drives leaver-access reviews.

Tables used

per_periods_of_service per_all_people_f per_person_names_f

Bind parameters

None — the statement runs as written; edit the literals in the WHERE clause to narrow it.

How to run it

Paste it into a BI Publisher data model as a SQL data set, or into QueryWell's Query Studio and run it against your pod with a reporting account. Results come back to a grid you can profile, chart and export with a SHA-256 hash. HCM data-source.

SQLdba-hcm-recent-terminations
SELECT ppl.person_number, nm.full_name, pos.date_start AS employment_start,
  pos.actual_termination_date, pos.last_working_date
FROM per_periods_of_service pos
JOIN per_all_people_f ppl ON ppl.person_id = pos.person_id AND TRUNC(SYSDATE) BETWEEN ppl.effective_start_date AND ppl.effective_end_date
JOIN per_person_names_f nm ON nm.person_id = pos.person_id AND nm.name_type = 'GLOBAL' AND TRUNC(SYSDATE) BETWEEN nm.effective_start_date AND nm.effective_end_date
WHERE pos.actual_termination_date >= TRUNC(SYSDATE) - 180
ORDER BY pos.actual_termination_date DESC

A single read-only SELECT against Oracle Fusion Cloud's supported reporting surface. Column names and views can differ by release and by the roles your reporting account holds, so validate the result against a report you already trust before relying on it.

hcmleaverstermination

Related

More Human Capital queries

Run it without the template cycle

QueryWell runs this and 81 other curated scripts against your own Fusion pod from one signed desktop app — grid, charts, profiling and hashed exports included. Perpetual licence, 14-day trial.