DBA Data[Home] [Help]

VIEW: APPS.HRI_CL_ORG_CC_V

Source

View Text - Preformatted

SELECT org.organization_id ID, orgT.name VALUE, -1 PARENT_ID, org.date_from START_DATE, NVL(org.date_to, hr_general.end_of_time) END_DATE, oinf.org_information1 SEGMENTS, substr(oinf.org_information1, (instr(oinf.org_information1,'|',1,1)+1), ( (instr(oinf.org_information1,'|',1,2)) - (instr(oinf.org_information1,'|',1,1)+1)) ) COMPANY, substr(oinf.org_information1, (instr(oinf.org_information1,'|',1,3)+1) ) COST_CENTER from hr_organization_information oinf, hr_all_organization_units org, hr_all_organization_units_tl orgT WHERE oinf.org_information_context = 'Company Cost Center' and org.organization_id = oinf.organization_id and org.organization_id = orgT.organization_id and orgT.language = USERENV('LANG') WITH READ ONLY
View Text - HTML Formatted

SELECT ORG.ORGANIZATION_ID ID
, ORGT.NAME VALUE
, -1 PARENT_ID
, ORG.DATE_FROM START_DATE
, NVL(ORG.DATE_TO
, HR_GENERAL.END_OF_TIME) END_DATE
, OINF.ORG_INFORMATION1 SEGMENTS
, SUBSTR(OINF.ORG_INFORMATION1
, (INSTR(OINF.ORG_INFORMATION1
, '|'
, 1
, 1)+1)
, ( (INSTR(OINF.ORG_INFORMATION1
, '|'
, 1
, 2)) - (INSTR(OINF.ORG_INFORMATION1
, '|'
, 1
, 1)+1)) ) COMPANY
, SUBSTR(OINF.ORG_INFORMATION1
, (INSTR(OINF.ORG_INFORMATION1
, '|'
, 1
, 3)+1) ) COST_CENTER
FROM HR_ORGANIZATION_INFORMATION OINF
, HR_ALL_ORGANIZATION_UNITS ORG
, HR_ALL_ORGANIZATION_UNITS_TL ORGT
WHERE OINF.ORG_INFORMATION_CONTEXT = 'COMPANY COST CENTER'
AND ORG.ORGANIZATION_ID = OINF.ORGANIZATION_ID
AND ORG.ORGANIZATION_ID = ORGT.ORGANIZATION_ID
AND ORGT.LANGUAGE = USERENV('LANG') WITH READ ONLY