select papf.person_number ,peai.ext_identifier_number alternate_id ,pni.national_identifier_number ,ppnf.last_name ,ppnf.first_name ,ppnf.middle_names ,to_char(pp.date_of_birth,'yyyy-mm-dd') birth_date ,leg.name company ,paam.ass_attribute3 officer_cd ,cs.annual_salary ,to_char((select min(ppos1.date_start) from per_periods_of_service ppos1 where ppos1.person_id = paam.person_id),'yyyy-mm-dd') hire_date ,to_char((select min(ppos2.date_start) from per_periods_of_service ppos2 where ppos2.period_of_service_id = paam.period_of_service_id),'yyyy-mm-dd') last_hire_date from per_all_people_f papf ,per_person_names_f ppnf ,per_ext_app_identifiers peai ,per_national_identifiers pni ,per_persons pp ,per_all_assignments_m paam ,hr_organization_v leg ,cmp_salary cs where 1 = 1 and ppnf.person_id = papf.person_id and ppnf.name_type