HR人員資訊 分配資訊和位址資訊sql

2021-06-19 17:24:11 字數 3008 閱讀 4930

select papf.employee_number employee_number,  

papf.last_name last_name, --員工姓名

papf.*** gender, --性別

papf.national_identifier national_identifier, --省份證號碼

hl.meaning marital_status, --婚姻狀況

papf.email_address email_address, --email位址,

fdfct.descriptive_flex_context_name || '.' ||

pa.address_line1 || '.' ||

pa.address_line2 || '.' ||

hla.meaning || '.' ||

pa.postal_code || '.' ||

pa.telephone_number_1 || '.' ||

pa.telephone_number_2 employee_address,

papf.effective_start_date per_effective_start_date, --人員日期自

papf.effective_end_date per_effective_end_date, --人員日期至

haou.name organization_name, --組織名稱

paaf.primary_flag primary_flag, --主分配標識

paaf.assignment_number assignment_number, --員工分配編號

pjt.name job_name, --職務名稱

hapft.name position_name, --職位名稱

paaf.effective_start_date ass_effective_start_date, --分配日期自

paaf.effective_end_date ass_effective_end_date --分配日期至

from per_all_people_f papf, --員工基本資訊表

per_all_assignments_f paaf, --員工分配表

per_jobs pj, --員工職務

per_jobs_tl pjt, --員工職務多語言表

per_all_positions pap, --員工職位表

hr_all_positions_f_tl hapft, --員工職位多語言表

hr_lookups hl, --**

hr_all_organization_units haou, --組織資訊,

fnd_territories_tl ftt, --地區

fnd_descr_flex_contexts_tl fdfct, --彈性域內容

hr_lookups hla, --位址**

per_addresses pa --位址資訊

where papf.person_id = paaf.person_id(+)

and paaf.job_id = pj.job_id(+)

and pj.job_id = pjt.job_id(+)

and pjt.language(+) = userenv('lang')

and paaf.position_id = pap.position_id(+)

and pap.position_id = hapft.position_id(+)

and hapft.language(+) = userenv('lang')

and paaf.primary_flag = 'y'

and papf.marital_status = hl.lookup_code(+)

and hl.lookup_type(+) = 'mar_status'

and paaf.organization_id = haou.organization_id(+)

and (sysdate between papf.effective_start_date and

papf.effective_end_date)

and (sysdate between paaf.effective_start_date and

paaf.effective_end_date)

and papf.person_id = pa.person_id(+)

and pa.country = ftt.territory_code(+)

and pa.style = fdfct.descriptive_flex_context_code(+)

and fdfct.descriptive_flexfield_name(+) = 'address structure'

and fdfct.language(+) = userenv('lang')

and hla.lookup_type(+) = 'address_type'

and pa.address_type = hla.lookup_code(+)

and ftt.language(+) = userenv('lang')

人員資訊管理( )

class employee employee employee employee employee void employee increaseempno int steps void employee promote int increment void employee setaccumpay...

人員資訊管理( )

class employee int employee employeeno 1000 員工編號基數為 1000 employee employee employee employee void employee increaseempno int steps void employee promo...

HR開發 操作資訊型別資料

hr開發 操作資訊型別資料 1 通過函式操作。infotypes 0001 data zreturn type bapireturn1,zpakey type bapipakey.getpernr.loop at p0001 where 鎖定人員編號 call function bapi emplo...