BIP – List of workers without payment method
SELECT papf.person_number
FROM PER_ALL_PEOPLE_F papf
,PER_PERIODS_OF_SERVICE ppos
WHERE 1=1
AND papf.person_id = ppos.person_id
AND (ppos.actual_termination_date IS NULL OR ppos.actual_termination_date >= TRUNC(SYSDATE))
AND NOT EXISTS (SELECT 'Found' FROM PAY_PAY_RELATIONSHIPS_DN pprd
,PAY_PERSON_PAY_METHODS_F pppmf
WHERE pprd.payroll_relationship_id = pppmf.payroll_relationship_id
AND pprd.person_id = papf.person_id)