<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: PQH IPEDS Report - Salary and Fringe Benefits Survey (SA) - Part A(obsoleted) -->
 <REPORTS_ROW>
  <GUID>C6E085D471EB51A9E05362FB09050512</GUID>
  <SQL_TEXT>select 
hla.lookup_code RankCode,
peo.sex GenCode,
nvl(count(peo.person_id),0) tot_number,
round(sum(NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor)) Salary_range,
round(nvl(avg(NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor),0)) avg_sal
from hr_lookups                    hla,
        per_all_people_f            peo,
        per_all_assignments_f   ass,
        per_contracts_f             pco,
        per_pay_proposals         ppp,
        per_pay_bases	             ppb,
        per_people_extra_info    ppea,
        per_jobs                        job,
        hr_lookups                     hl,
        per_shared_types          pst,
        per_shared_types          pst1
WHERE  	peo.person_id              	= ass.person_id
AND   peo.current_employee_flag = &apos;Y&apos;
AND   ass.assignment_type  = &apos;E&apos;
AND     peo.person_id               = pco.person_id
AND     peo.person_id              	= ppea.person_id
AND	 :p_report_date 
BETWEEN ass.effective_start_date AND ass.effective_end_date 
AND :p_report_date 
BETWEEN peo.effective_start_date AND peo.effective_end_date
AND	 :p_report_date 
BETWEEN pco.effective_start_date AND pco.effective_end_date
AND	:p_report_date 
BETWEEN fnd_date.canonical_to_date (ppea.pei_information2)   
                  AND  fnd_date.canonical_to_date(NVL(ppea.pei_information3, &apos;4712/12/31 00:00:00&apos;))
AND	ass.pay_basis_id		= ppb.pay_basis_id
AND	ass.assignment_id		= ppp.assignment_id
AND	hla.lookup_code			= ppea.pei_information1
AND	ppea.pei_information1		IS NOT NULL 
AND ppea.pei_information_category   	= &apos;PQH_ACADEMIC_RANK&apos;
AND	hla.lookup_type			= &apos;PQH_ACADEMIC_RANK&apos;
AND hla.lookup_code != &apos;01&apos;
AND  ass.primary_flag     		= &apos;Y&apos;
and pco.type = &apos;FULL_TIME&apos;
and pco.status = pst.system_type_cd
and pst.lookup_type = &apos;CONTRACT_STATUS&apos;
and pst1.system_type_cd(+) = pst.system_type_cd
and pst1.lookup_type(+) = pst.lookup_type
and pst.business_group_id is null
and pst1.business_group_id(+) = :p_business_group_id
and nvl(pst1.information1,pst.information1) = &apos;Y&apos;
AND pqh_employment_category.get_duration_in_months(pco.duration,                                pco.duration_units,                                                                      pco.business_group_id,                                                                                :p_report_date) &lt; 9
AND job.job_information8 is not null
AND job.job_information8 in (&apos;1&apos;, &apos;2&apos;, &apos;3&apos;)
AND	hl.lookup_code		= job.job_information8
AND pqh_employment_category.identify_empl_category(ass.employment_category,:cp_fr,:cp_ft,:cp_pr,:cp_pt)   IN (&apos;FR&apos;)
AND	hl.lookup_type		= &apos;US_IPEDS_JOB_CATEGORIES&apos;
AND   job.job_information_category   	= &apos;US&apos;
AND   ass.job_id                  	=  job.job_id
AND	ppp.change_date	= (SELECT  MAX(change_date)
	FROM	per_pay_proposals  pro
	WHERE	ppp.assignment_id	= pro.assignment_id 
	AND	pro.change_date &lt;=	:p_report_date
                    AND          pro.approved = &apos;Y&apos;)
AND    NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor &gt; 0
AND     ass.organization_id IN (
	SELECT	org.organization_id 
	FROM	hr_all_organization_units org
	WHERE	business_group_id = :p_business_group_id
                   AND           pqh_inst_type_pkg.get_inst_type(org.organization_id) = &apos;NON-MED&apos; )
				   and hla.lookup_code=:Rank 
 and peo.sex=:Gender
group by  hla.lookup_code,peo.sex
union
select 
&apos;01&apos; RankCode,
peo.sex GenCode,
count(peo.person_id) tot_number,
round(sum(NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor)) Salary_range,
round(avg(NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor)) avg_sal
from per_all_people_f              peo,
        per_all_assignments_f    ass,
        per_contracts_f              pco,
        per_pay_proposals          ppp,
        per_pay_bases	              ppb,
        per_jobs                          job,
        hr_lookups                      hl,
        per_shared_types           pst,
        per_shared_types           pst1
WHERE  	peo.person_id              	= ass.person_id
AND   peo.current_employee_flag = &apos;Y&apos;
AND   ass.assignment_type =&apos;E&apos;
AND     peo.person_id               = pco.person_id
AND	:p_report_date 
BETWEEN ass.effective_start_date AND ass.effective_end_date
AND	:p_report_date 
BETWEEN peo.effective_start_date AND peo.effective_end_date
AND	:p_report_date 
BETWEEN pco.effective_start_date AND pco.effective_end_date
AND	ass.pay_basis_id		= ppb.pay_basis_id
AND	ass.assignment_id		= ppp.assignment_id
AND  ass.primary_flag     		= &apos;Y&apos;
AND not exists (select pea.person_id from per_people_extra_info pea
                where pea.person_id = peo.person_id
                and pea.information_type in &apos;PQH_ACADEMIC_RANK&apos;
                and pea.pei_information1 in (&apos;02&apos;,&apos;03&apos;,&apos;04&apos;,&apos;05&apos;,&apos;06&apos;)
                and :p_report_date 
				between fnd_date.canonical_to_date(pea.pei_information2)  
                and fnd_date.canonical_to_date(NVL(pea.pei_information3, &apos;4712/12/31 00:00:00&apos;)))
and pco.type = &apos;FULL_TIME&apos;
and pco.status = pst.system_type_cd
and pst.lookup_type = &apos;CONTRACT_STATUS&apos;
and pst1.system_type_cd(+) = pst.system_type_cd
and pst1.lookup_type(+) = pst.lookup_type
and pst.business_group_id is null
and pst1.business_group_id(+) = :p_business_group_id
and nvl(pst1.information1,pst.information1) = &apos;Y&apos;
AND pqh_employment_category.get_duration_in_months(pco.duration,                              pco.duration_units,                                                                             pco.business_group_id,                                                                               :p_report_date) &lt; 9
AND job.job_information8 is not null
AND job.job_information8 in (&apos;1&apos;, &apos;2&apos;, &apos;3&apos;)
AND	hl.lookup_code		= job.job_information8
AND pqh_employment_category.identify_empl_category(ass.employment_category,:cp_fr,:cp_ft,:cp_pr,:cp_pt)   IN (&apos;FR&apos;)
AND	hl.lookup_type		= &apos;US_IPEDS_JOB_CATEGORIES&apos;
AND   job.job_information_category   	= &apos;US&apos;
AND   ass.job_id                  	=  job.job_id
AND	ppp.change_date	= (SELECT  MAX(change_date)
	FROM	per_pay_proposals  pro
	WHERE	ppp.assignment_id	= pro.assignment_id 
	AND	pro.change_date &lt;=	:p_report_date
                  AND            pro.approved = &apos;Y&apos;)
AND    NVL(ppp.proposed_salary_n,0) * ppb.pay_annualization_factor &gt; 0
AND     ass.organization_id IN (
	SELECT	org.organization_id
	FROM	hr_all_organization_units org
	WHERE	business_group_id = :p_business_group_id
                   AND           pqh_inst_type_pkg.get_inst_type(org.organization_id) = &apos;NON-MED&apos;) 
 and &apos;01&apos;=:Rank
 and peo.sex=:Gender
group by peo.sex
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>PQH</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>PQIPED3_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PQH IPEDS Report - Salary and Fringe Benefits Survey (SA) - Part A(obsoleted)</REPORT_NAME>
    <DESCRIPTION>Imported from BI Publisher
Application: Public Sector HR
Source: IPEDS Report - Salary and Fringe Benefits Survey (SA) - Part A (XML) (obsoleted)
Short Name: PQIPED3_XML
DB package: PQH_PQIPED3_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:cp_fr</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cp_ft</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cp_pr</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cp_pt</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cp_report_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:cp_tottitleperreport</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:gender</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:line_num</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_business_group_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_day_month</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:rank</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:reporttotlineno</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_business_group_id</ANCHOR>
    <PARAMETER_TYPE_DSP>Char</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;PER_BUSINESS_GROUP_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Business Group ID</PARAMETER_NAME>
      <DESCRIPTION>Business Group ID</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_report_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Reporting Date</PARAMETER_NAME>
      <DESCRIPTION>Reporting Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
