0% found this document useful (0 votes)
2K views16 pages

Sravan Oracle Apps Hrms - Core HR Queries

The document contains several Oracle HRMS queries to retrieve employee and salary information from Oracle HRMS tables. The queries include getting the latest basic salary change date, previous employee grade, absence details for an employee, salary management details, job extra information, and valid grades for a position.

Uploaded by

Ravindra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views16 pages

Sravan Oracle Apps Hrms - Core HR Queries

The document contains several Oracle HRMS queries to retrieve employee and salary information from Oracle HRMS tables. The queries include getting the latest basic salary change date, previous employee grade, absence details for an employee, salary management details, job extra information, and valid grades for a position.

Uploaded by

Ravindra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
0

More NextBlog

CreateBlog

SRAVANORACLEAPPSHRMS
Labels

AccountPayables(AP)
(2)

ShowingpostswithlabelCoreHRQueries. Showallposts

2016(1)
February(1)

Friday,July24,2015

Alerts(2)
AOLQueries(16)

OracleHRMSQuerytoGetLatestBasicSalaryChangeDate

2014(15)

AppsQueries(4)

2013(15)

HRMSQueries(16)

SELECTppps.proposed_salary_nfromper_pay_proposalsppps
wherepaaf.assignment_id=ppps.assignment_id
ANDppps.last_change_dateisnotnull
andppps.change_date=(SELECTTO_CHAR(max(ppp.change_date),'DDMONRRRR')aschange_effective_date
fromper_pay_proposalsppp
where1=1
andpaaf.assignment_id=ppp.assignment_id

IMPLINKSFOR
ORACLEAPPS(1)

ANDlast_change_dateisnotnull)

CoreHRQueries(42)
EBOOKS(2)
HRMS(7)

INVENTORY(INV)(1)
LAPTOP(1)

Postedbysravanat9:09AM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

OLM(1)
OLMQueries(7)
ORACLEAPPPS
TECHNICAL(6)
ORDER
MANAGEMENT(ONT)
(2)
OTLQueries(5)

OracleHRMSQueryforGradeandSalaryHistory

PayrollQueries(1)
PURCHASING(PO)(3)

OracleHRMSQuerytoGetPreviousGrade

PUZZLES(7)

SELECT
pg_old.name
fromapps.per_all_people_fpapf,
apps.per_all_assignments_fpaaf_old,
apps.per_gradespg_old,
apps.per_all_assignments_fpaaf_new,
apps.per_gradespg_new
where1=1
andpapf.person_id=paaf_old.person_id
andpapf.person_id=paaf_new.person_id
andpaaf_old.person_id=paaf_new.person_id
andpaaf_old.assignment_type='E'
andpaaf_old.primary_flag='Y'
andpaaf_new.assignment_type='E'
andpaaf_new.primary_flag='Y'
andpg_old.grade_id=paaf_old.grade_id
andpg_new.grade_id=paaf_new.grade_id
andpaaf_old.grade_id<>paaf_new.grade_id
andtrunc(paaf_old.effective_end_date)+1=trunc(paaf_new.effective_start_date)
andtrunc(sysdate)betweenpapf.effective_start_dateandpapf.effective_end_date
andtrunc(paaf_new.effective_start_date)betweenpaaf_new.effective_start_dateandpaaf_new.effective_end_date
andpapf.person_id=162
andpapf.person_id=paaf.person_id
andpaaf_new.effective_start_date=(select
((to_char(max(paaf_new.effective_start_date),'DDMONRRRR')))
fromapps.per_all_people_fpapf,
apps.per_all_assignments_fpaaf_old,
apps.per_gradespg_old,
apps.per_all_assignments_fpaaf_new,
apps.per_gradespg_new
where1=1
andpapf.person_id=paaf_old.person_id
andpapf.person_id=paaf_new.person_id
andpaaf_old.person_id=paaf_new.person_id

SQLANDPLSQL(5)
SQLScripts(12)
SSHR(3)
SSHRQueries(3)
UserHooks(4)
UTL_FILE(2)

FindDateTrack
Mode
2015(121)

API'S(4)

BOOKS(2)

BlogArchive

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

2012(1)
2010(1)

PopularPosts

QuerytoFindAllActive
EmployeesandCurrent
Salary
select
EMPLOYEE_NUMBER,
a.FULL_NAME,
x.USER_PERSON_TYPE,
c.PROPOSED_SALARY_n
Basi_Salary,
c.CHANGE_DATE,c.*
from...
QuerytoFindoutallEarning
andDeductionElementsand
valuesafterPayrollRun
SELECT
ppf.employee_number,
ppf.person_id,ppf.full_name,
ppa.TIME_PERIOD_ID,
ppa.EFFECTIVE_DATE,
TP.PERIOD_NAME,
paf.ORGANIZATION_...
OracleHRMS
Scripts(Queries)Employee
Relation
SELECTrel.PERSON_ID
Person_id,
rel.CONTACT_PERSON_ID
CONTACT_PERSON_ID,
per.full_name,
per.date_of_birth,
hr_general.decode_looku...
OracleHRMSQueryfor
GradeandSalaryHistory
OracleHRMSQuerytoGet
PreviousGradeSELECT
pg_old.namefrom
apps.per_all_people_fpapf,
apps.per_all_assignments_f
paaf_old,app...
TerminateEmployeeOracle
EBS(CallingAPI)
Employeedatacouldbe
terminatedfrombackend
usingoracleHRMSAPI
(HR_EX_EMPLOYEE_API.A
CTUAL_TERMINATION_EMP
).DeclareCURSOR
c_emp_...
ProcuretoPayCycleWith
TablesAndScrrenshots
ProcuretoPayCycle
,General,Payables,
ProcessFlowsAdd
commentsInthisarticle,we
willseethestepsinvo...

QuerytotofindtheEmployee
Supervisorname
SELECTpapf1.full_name

1/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andpaaf_old.assignment_type='E'
andpaaf_old.primary_flag='Y'
andpaaf_new.assignment_type='E'
andpaaf_new.primary_flag='Y'
andpg_old.grade_id=paaf_old.grade_id
andpg_new.grade_id=paaf_new.grade_id
andpaaf_old.grade_id<>paaf_new.grade_id
andtrunc(paaf_old.effective_end_date)+1=trunc(paaf_new.effective_start_date)
andtrunc(sysdate)betweenpapf.effective_start_dateandpapf.effective_end_date
andtrunc(paaf_new.effective_start_date)betweenpaaf_new.effective_start_dateandpaaf_new.effective_end_date
andpapf.person_id=162
andpapf.person_id=paaf.person_id)
Postedbysravanat9:08AM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

supervisor_nameFrom
apps.per_all_people_fpapf,
apps.per_all_assignments_f
paaf,apps.per_all_people_f
papf1W...
(notitle)
HOWTOTURNYOUR
LAPTOPINTOWIFI
ROUTER
StepsForCreatingUserHook
StepsForCreatingUserHook
:OracleHRMSStep1:Find
theAPIforwhichHOOKhas
towrite.Thereare
mainlytwo...
Oracle.E
Business.Suite.R12.Core.Dev
elopment.and.Extension.Cook
book
https://drive.google.com/file/d
/0B4sGOfY_IcSTSWE0UDV6
WkI5Qm8/edit?usp=sharing

FlashDateCalendar

QuerytogetAbsenceDetailEmployeewise.ApprovedAbsencedetails.
SELECTpapf.EMPLOYEE_NUMBER
,papf.FULL_NAME
,pat.NAMEabsence_type
,paa.date_startleave_start_date
,paa.date_endleave_end_date
,paa.absence_days
,paa.abs_information_category
,paa.abs_information2
,paa.abs_information3
,paa.abs_information4
FROMper_absence_attendancespaa,
per_absence_attendance_typespat,
per_all_people_fpapf
WHEREpaa.absence_attendance_type_id=pat.absence_attendance_type_id
ANDpapf.person_id=paa.person_id
ANDTRUNC(paa.date_start)BETWEENTRUNC(papf.effective_start_date)
ANDTRUNC(papf.effective_end_date)
ANDpapf.EMPLOYEE_NUMBER=nvl(:p_employee_number,papf.EMPLOYEE_NUMBER)
orderbypapf.EMPLOYEE_NUMBER,paa.date_start
Postedbysravanat9:01AM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

VisitorMap

FlagCounter
IN
SA
GB
QA
CA

4510
717
645
213
142

US
AE
PK
BR
EG

Newest:
LY You:
Today:
Month:
Total:
11807
Supercounters.com

Friday,July3,2015

Query:SalaryManagement

select
ppf.employee_number"EmployeeNumber",

ppf.full_name"FullName",
psf.assignment_number"AssignmentNumber",
ppb.name"Salarybasis",
ppp.change_date"ApprovedDate",
ppp.proposed_salary_n"ApprovedSalary",
pro1.change_date"ChangeDate",
pro1.proposed_salary_n"ProposedSalary",
proposal_reason"ProposalReason",
pppc.change_percentage"COL%",
pppc.change_amount_n"COLAmount",
psf.employment_category"AssignmentCategory",lookupEMP_CAT

ppf.person_id,
ppb.pay_basis_id

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

2/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
from
per_all_people_fppf,
per_assignments_fpsf,
per_pay_basesppb,
per_pay_proposalspro1,
(selectppp.change_date,
ppp.proposed_salary_n,
ppp.approved,
ppp.assignment_id
fromper_pay_proposalsppp
whereapproved='Y')ppp,
per_pay_proposal_componentspppc
where
1=1
andppf.person_id=psf.person_id
andpsf.pay_basis_id=ppb.pay_basis_id
andpsf.assignment_id=pro1.assignment_id(+)
andpro1.approved(+)='N'
andpsf.assignment_id=ppp.assignment_id(+)
and(ppp.change_dateisnull
orppp.change_date=(selectmax(change_date)
fromper_pay_proposalspro3
whereppp.assignment_id=pro3.assignment_id
andpro3.approved='Y'))
andpro1.pay_proposal_id=pppc.pay_proposal_id(+)
andsysdatebetweenppf.effective_start_dateandppf.effective_end_date
andsysdatebetweenpsf.effective_start_dateandpsf.effective_end_date

andppf.employee_number='1309'
orderby
1,2
Postedbysravanat8:31PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:JobExtraInformations

select
pjt.name"Name",

pjei.jei_information_category"Type",
decode(pjei.jei_information_category,
'JobCategory',pjei.jei_information1||'.'||pjei.jei_information2||'.'||pjei.jei_information3||'.'
||pjei.jei_information4||'.'||pjei.jei_information5||'.'||pjei.jei_information6,
'MX_SS_SALARY_TYPE',pjei.jei_information1,
'PER_SUCCESSION_PLANNING',pjei.jei_information2||'.'||pjei.jei_information1,
null)"Details",

pj.job_id
from
per_job_extra_infopjei,
per_jobspj,
per_jobs_tlpjt
where
1=1
andpjei.job_id=pj.job_id
andpj.job_id=pjt.job_id
andpjt.language=userenv('LANG')

andpjt.namelike'ACC400%'
orderby
1
Postedbysravanat8:31PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:PositionValidGrades

select

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

3/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
hapf.name"PositionName",

pgl.name"Grade",
pg.date_from"DateFrom",

pg.date_to"DateTo",
hapf.position_id
from
per_valid_gradespvg,
per_gradespg,
per_grades_tlpgl,
hr_all_positions_fhapf
where1=1
andpgl.grade_id=pg.grade_id
andpgl.language=userenv('LANG')
andpg.grade_id=pvg.grade_id
andpvg.position_id=hapf.position_id

andhapf.namelike'1001.OperationsVicePresident'
Postedbysravanat8:31PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:GradeRates

select
pr.name"Rate",

pgt.name"GradeName",
fcv.name"Currency",
pgr.value"Value",
pgr.minimum"Minimum",
pgr.maximum"Maximum",
pgr.mid_value"MidValue",
pgr.effective_start_date"Eff:DatesFrom",
pgr.effective_end_date"Eff:DatesTo",

pgt.grade_id,
pr.rate_id
from
per_grades_tlpgt,
pay_grade_rules_fpgr,
pay_ratespr,
fnd_currencies_vlfcv
where
1=1
andpgt.grade_id(+)=pgr.grade_or_spinal_point_id
andpr.rate_id=pgr.rate_id
andfcv.currency_code(+)=pgr.currency_code

andpr.name='StandardHourlyRates'
orderby
1,2,3,4
Postedbysravanat8:31PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:GradePayScales

select
pps.name"Name",

pps.last_automatic_increment_date"LastAutoIncrement",
pps.increment_frequency"IncrementFreq:Number",
pps.increment_period"IncrementFreq:Period",
psp.spinal_point"Point",
psp.sequence"Sequence",

pps.parent_spine_id
from

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

4/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
per_parent_spinespps,
per_spinal_pointspsp
where
1=1
andpps.parent_spine_id=psp.parent_spine_id

andpps.name='HrlyPayScale:Welder/Laborer'
orderby
1,2,3
Postedbysravanat8:30PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:GradeScaleRates

select
pgtl.name"GradeName",

pps.name"PayScaleName",
pspsf.sequence"Ceiling:Step",
grs.starting_step"StartingStep",
grs.effective_start_date"EffectiveStartDate",
rownum"Step",
psp.spinal_point"Point",

pgtl.grade_id
from
per_grades_tlpgtl,
per_grade_spines_fgrs,
per_parent_spinespps,
per_spinal_pointspsp,
per_spinal_point_steps_fpspsf
where
1=1
andgrs.grade_id=pgtl.grade_id
andgrs.parent_spine_id=pps.parent_spine_id
andpsp.parent_spine_id=pps.parent_spine_id
ANDgrs.ceiling_step_id=pspsf.step_id

andpgtl.name='200.2.Central'
orderby
1,2,5,6
Postedbysravanat8:30PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:PeopleAssignmentSalaryCurrent

select
ppf.employee_number"EmployeeNumber",

ppp.change_date"From",
ppp.proposed_salary_n"Salary",
(ppp.proposed_salary_n*12)"AnnualSalary",
(ppp.proposed_salary_n*12)"FTAnnualSalary",
per_saladmin_utility.get_fte_factor(ppp.assignment_id,ppp.change_date)"FTEFactor",
hr_general.decode_lookup('PER_SAL_PROPOSAL_STATUS',approved)"Status",
ppp.next_perf_review_date"NextSalaryReview",
hr_general.decode_lookup('PROPOSAL_REASON',proposal_reason)"ReasonForChange",
ppp.date_to"To",

ppp.pay_proposal_id,
ppp.assignment_id,
ppp.event_id,
ppp.business_group_id

from
per_pay_proposalsppp,
per_performance_reviewsppr,

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

5/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
per_assignments_f2paa,
per_people_fppf,
per_pay_basesppb,
pay_input_values_fpiv,
pay_element_types_fpet
where
1=1
andppp.performance_review_id=ppr.performance_review_id(+)
andppp.assignment_id=paa.assignment_id
andpaa.person_id=ppf.person_id
andsysdatebetweenppp.change_dateandnvl(ppp.date_to,hr_general.end_of_time)
andppp.change_datebetweenpaa.effective_start_dateandpaa.effective_end_date
andpaa.pay_basis_id(+)=ppb.pay_basis_id
andppb.input_value_id=piv.input_value_id
andpiv.element_type_id=pet.element_type_id
andppp.change_datebetweenpiv.effective_start_dateandpiv.effective_end_date
andppp.change_datebetweenpet.effective_start_dateandpet.effective_end_date

andppf.employee_number='1309'
orderby
1,2,3
Postedbysravanat8:30PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:People

select
ppf.employee_number"EmployeeNumber",

ppf.last_name"LastName",
ppf.first_name"FirstName",
ppf.title"Title",
ppf.pre_name_adjunct"Prefix",
ppf.suffix"Suffix",
ppf.middle_names"Middle",
decode(ppf.sex,
'M','Male',
'F','Female',
ppf.sex)"Gender",
ppttl.user_person_type"PersonType",
ppf.applicant_number"ApplicantNumber",
ppf.national_identifier"SocialSecurity",
ppf.effective_start_date"EffectiveDateFrom",
ppf.effective_end_date"EffectiveDateTo",
ppf.start_date"LatestStartDate",

ppf.date_of_birth"Personal:BirthDate",
ppf.town_of_birth"Personal:TownOfBirth",
ppf.region_of_birth"Personal:RegionofBirth",
ppf.country_of_birth"Personal:CountryofBirth",
trunc((sysdate
ppf.date_of_birth)/365)"Personal:Age",
hl1.meaning"Personal:Status",
ppf.nationality"Personal:Nationality",
hl2.meaning"Personal:RegisteredDisabled",

hl5.meaning"Employment:EthnicOrigin",
decode(ppf.per_information11,
'N','No',
'Y','Yes',
ppf.per_information11)"Employment:EthnicityDisclosed",
hl6.meaning"Employment:VETS100",
decode(ppf.per_information9,
'N','No',
'Y','Yes',
ppf.per_information9)"Employment:ChildSupport",
decode(ppf.per_information10,
'N','No',
'Y','Yes',
ppf.per_information10)"Employment:OptedforMedicare",
decode(ppf.per_information2,
'N','No',
'Y','Yes',
ppf.per_information2)"Employment:I9Status",

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

6/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
ppf.per_information3"Employment:I9Expiration",
hl7.meaning"Employment:NewHire",
hl9.meaning"Employment:ExceptionReason",
hl8.meaning"Employment:Vets100A",
ppf.office_number"OfficeDetails:Office",
ppf.internal_location"OfficeDetails:Location",
ppf.mailstop"OfficeDetails:MailStop",
ppf.email_address"OfficeDetails:EmailAddress",
hl1.meaning"OfficeDetails:MailTo",
ppf.resume_exists"Applicant:ResumeExists",
ppf.resume_last_updated"Applicant:LastUpdated",
ppf.hold_applicant_date_until"HoldApplicationUntil",
ppf.background_check_status"Background:Checked",
ppf.background_date_check"Background:DateChecked",
ppf.rehire_recommendation"Rehire:Recommendation",
ppf.rehire_reason"Rehire:Reason",
ppf.honors"FurtherName:Honors",
ppf.known_as"FurtherName:PreferredName",
ppf.previous_last_name"PreviuosLastName",
hl3.meaning"Medical:BloodType",
ppf.last_medical_test_date"Medical:LastTestDate",
ppf.last_medical_test_by"Medical:LastTestBy",
ppf.work_schedule"Other:WorkSchedule",
ppf.fte_capacity"Other:FullTimeAvailability",
ppf.correspondence_language"Correspondancelanguage",
ppf.date_of_death"DateofDeath",
ppf.student_status"Other:StudentStatus",
ppf.date_employee_data_verified"Other:DateLastVerified",
ppf.on_military_service"Other:OnMilitaryService",
ppf.second_passport_exists"Other:SecondPassportExist",
bbg.name"Benifits:BenifitGroup",
ppf.uses_tobacco_flag"Benifits:UsesTobacco",
ppf.coord_ben_med_pln_no"Benifits:MedicalPlan",
ppf.dpdnt_adoption_date"Benifits:AdoptionDate",
ppf.receipt_of_death_cert_date"DateReceivedDeathCert",
pps.adjusted_svc_date"Benifits:AdjustedServiceDate",
ppf.original_date_of_hire"Benifits:OriginalDateOfHire",
ppf.coord_ben_no_cvg_flag"Benifits:OtherCoverage",
ppf.dpdnt_vlntry_svce_flag"Benifits:VoluntaryService",

ppf.person_id
from
per_people_fppf,
per_person_typesppt,
per_person_types_tlppttl,
hr_lookupshl1,
hr_lookupshl2,
ben_benfts_grpbbg,
per_periods_of_servicepps,
hr_lookupshl11,
hr_lookupshl12,
hr_lookupshl3,
hr_lookupshl4,
hr_lookupshl5,
hr_lookupshl6,
hr_lookupshl7,
hr_lookupshl8,
hr_lookupshl9
where
1=1
andppt.person_type_id=ppf.person_type_id
andppt.person_type_id=ppttl.person_type_id
andbbg.benfts_grp_id(+)=ppf.benefit_group_id
andpps.person_id(+)=ppf.person_id
andhl1.lookup_type(+)='STUDENT_STATUS'
andhl1.lookup_code(+)=ppf.student_status
andhl2.lookup_type(+)='REGISTERED_DISABLED'
andhl2.lookup_code(+)=ppf.registered_disabled_flag
andhl11.lookup_type(+)='HOME_OFFICE'
andhl11.lookup_code(+)=ppf.expense_check_send_to_address
andhl12.lookup_type(+)='WORK_SCHEDULE'
andhl12.lookup_code(+)=ppf.work_schedule
andhl3.lookup_type(+)='BLOOD_TYPE'
andhl3.lookup_code(+)=ppf.blood_type
andhl4.lookup_type(+)='STUDENT_STATUS'
andhl4.lookup_code(+)=ppf.student_status
andhl5.lookup_type(+)='US_ETHNIC_GROUP'
andhl5.lookup_code(+)=ppf.per_information1
andhl6.lookup_type(+)='US_VETERAN_STATUS'
andhl6.lookup_code(+)=ppf.per_information5
andhl7.lookup_type(+)='US_NEW_HIRE_STATUS'

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

7/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andhl7.lookup_code(+)=ppf.per_information7
andhl8.lookup_type(+)='US_VETERAN_STATUS'
andhl8.lookup_code(+)=ppf.per_information25
andhl9.lookup_type(+)='US_NEW_HIRE_EXCEPTIONS'
andhl9.lookup_code(+)=ppf.per_information8
andppttl.language=userenv('LANG')

andppf.employee_number='1309'
orderby
1,2,3,4
Postedbysravanat8:29PM

2comments:

Linkstothispost

Labels:CoreHRQueries

Query:PeopleFedralTaxRules

select
ppf.employee_number"EmployeeNumber",

(selectstate_name
frompay_us_states
wherestate_abbrev=add_information17)"Resident",
(selecthlat.region_2
fromhr_locations_allhlat
wherehlat.location_id=paaf.location_id)"Work",
pus.state_name"SUIState",
paa.add_information18"ResidentCity",
pus.state_name"WorkCity",
paa.add_information19"ResidentCounty",
(selecthlat.region_1
fromhr_locations_allhlat
wherehlat.location_id=paaf.location_id)"WorkCounty",
hrl1.meaning"FilingStatus",
ftr.withholding_allowances"Allowances",
ftr.fit_additional_tax"AdditionalTax",
ftr.fit_exempt"TaxExemption:Fit",
ftr.futa_tax_exempt"TaxExemption:FUTA",
ftr.medicare_tax_exempt"TaxExemption:MEDICARE",
ftr.ss_tax_exempt"TaxExemption:SS",
ftr.fit_override_amount"FO:RegularAmount",
ftr.fit_override_rate"FO:RegularRate",
ftr.supp_tax_override_rate"FO:SupplementalRate",
ftr.excessive_wa_reject_date"LockinDate",
ftr.statutory_employee"StatutoryEmployee",
ftr.cumulative_taxation"CumulativeTaxation",
ftr.wage_exempt"FItExemptWageAcc",
hrl2.meaning"EICfillingstatus",
ftr.effective_start_date"EffecDates:From",
decode(ftr.effective_end_date,
to_date('31124712','DDMMYYYY'),null,
ftr.effective_end_date)"EffecDates:To",

ftr.emp_fed_tax_rule_id,
paaf.assignment_id,
paaf.location_id,
paa.address_id

from
pay_us_emp_fed_tax_rules_fftr,
per_all_assignments_fpaaf,
pay_us_statespus,
per_addressespaa,
hr_lookupshrl1,
hr_lookupshrl2,
per_people_fppf
where
ftr.sui_state_code=pus.state_code
andftr.assignment_id=paaf.assignment_id
andpaa.person_id=paaf.person_id
andftr.filing_status_code=hrl1.lookup_code
andhrl1.lookup_type='US_FIT_FILING_STATUS'
andftr.eic_filing_status_code=hrl2.lookup_code
andhrl2.lookup_type='US_EIC_FILING_STATUS'
andnvl(paaf.effective_end_date,sysdate)>sysdate1
andftr.assignment_id=paaf.assignment_id

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

8/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andpaaf.person_id=ppf.person_id

andppf.employee_number='1309'
orderby
1,2
Postedbysravanat8:29PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:PeopleStateTaxRules

select
ppf.employee_number"EmployeeNumber",

pus.state_name"State",
hrl.meaning"W4Info:FilingStatus",
str.withholding_allowances"W4Info:Allowances",
str.secondary_wa"W4Info:SeconAllowances",
str.additional_wa_amount"W4Info:ExemptionAaount",
str.sit_additional_tax"W4Info:AddnTax",
str.sit_optional_calc_ind"W4Info:OptCalc",
str.sit_exempt"TaxEx:SIT",
str.sdi_exempt"TaxEx:SDI",
str.sui_exempt"TaxEx:SUI",
str.wc_exempt"TaxEx:WC",
str.sit_override_rate"SITOverride:RegularRate",
str.sit_override_amount"SITOverride:RegularAmount",
str.supp_tax_override_rate"SITOverride:SuppRate",
str.sui_wage_base_override_amount"SUIBaseOverride",
str.excessive_wa_reject_date"LockinDate",
str.state_non_resident_cert"NonResiCerti",
str.wage_exempt"SITExmFmWgAccm",
str.effective_start_date"EffectiveDate:From",
decode(str.effective_end_date,
to_date('31124712','DDMMYYYY'),null,
str.effective_end_date)"EffectiveDate:To",

str.assignment_id,
str.business_group_id

from
pay_us_emp_state_tax_rules_fstr,
pay_us_statespus,
pay_state_rulespsr,
hr_lookupshrl,
per_all_assignments_fpaaf,
per_people_fppf
where
pus.state_code=str.state_code
andpsr.state_code=pus.state_abbrev
andhrl.lookup_type=psr.fs_lookup_type
andnvl(str.effective_end_date,sysdate)>sysdate1
andhrl.lookup_code=ltrim(str.filing_status_code,'0')
andstr.assignment_id=paaf.assignment_id
andnvl(paaf.effective_end_date,sysdate)>sysdate1
andpaaf.person_id=ppf.person_id

andppf.employee_number='1309'
orderby
1,2
Postedbysravanat8:28PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:PeopleCountyTaxRules

select
ppf.employee_number"EmployeeNumber",

pus.state_name"State",

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

9/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
puc.county_name"County",
hrl.meaning"W4Info:FilingStatus",
ctr.withholding_allowances"W4Info:Allowances",
ctr.lit_additional_tax"W4Info:AdditionalTax",
ctr.additional_wa_rate"W4Info:AddAlllowRate",
ctr.lit_exempt"TaxEx:LocalIncome",
ctr.sd_exempt"TaxEx:SchoolDistrict",
ctr.ht_exempt"TaxEx:OccuPrivilage",
ctr.lit_override_rate"LITOverride:Rate",
ctr.lit_override_amount"LITOverride:Amount",
psd.school_dst_name"SchoolDistrict",
ctr.wage_exempt"LITExfromWgeAccu",
ctr.effective_start_date"EffectiveDates:From",
decode(ctr.effective_end_date,
to_date('31124712','DDMMYYYY'),null,
ctr.effective_end_date)"EffectiveDates:To",

ctr.assignment_id
from
pay_us_emp_county_tax_rules_fctr,
pay_us_statespus,
pay_us_countiespuc,
hr_lookupshrl,
pay_us_county_school_dstspsd,
per_all_assignments_fpaaf,
per_people_fppf
where
1=1
andctr.state_code=pus.state_code
andctr.state_code=puc.state_code
andctr.county_code=puc.county_code
andctr.filing_status_code=hrl.lookup_code
andhrl.lookup_type='US_LIT_FILING_STATUS'
andctr.state_code=psd.state_code(+)
andctr.county_code=psd.county_code(+)
andctr.school_district_code=psd.school_dst_code(+)
andctr.assignment_id=paaf.assignment_id
andnvl(paaf.effective_end_date,sysdate)>sysdate1
andpaaf.person_id=ppf.person_id

andppf.employee_number='1309'
orderby
1,2
Postedbysravanat8:28PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:PeopleCityTaxRules

select
ppf.employee_number"EmployeeNumber",

pus.state_name"State",
pucnty.county_name"County",
pucity.city_name"City",
hrl.meaning"W4Info:FilingStatus",
ctr.withholding_allowances"W4Info:Allowances",
ctr.lit_additional_tax"W4Info:AdditionalTax",
ctr.additional_wa_rate"W4Info:AdditionalAllRate",
ctr.lit_exempt"TaxExn:LocalIncome",
ctr.sd_exempt"TaxExn:SchoolDistrict",
ctr.ht_exempt"TaxExn:OccupationalPri",
ctr.lit_override_rate"LITOverride:Rate",
ctr.lit_override_amount"LITOverride:Amount",
psd.school_dst_name"SchoolDistrict",
ctr.wage_exempt"LITExmpFromWageAccn",
ctr.effective_start_date"EffectiveDates:From",
decode(ctr.effective_end_date,
to_date('31124712','DDMMYYYY'),null,
ctr.effective_end_date)"EffectiveDates:To",

ctr.business_group_id,
ctr.emp_city_tax_rule_id,
ctr.assignment_id

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

10/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
from
pay_us_emp_city_tax_rules_fctr,
pay_us_statespus,
pay_us_countiespucnty,
pay_us_city_namespucity,
hr_lookupshrl,
pay_us_city_school_dstspsd,
per_all_assignments_fpaaf,
per_people_fppf
where
ctr.state_code=pus.state_code
andctr.state_code=pucnty.state_code
andctr.county_code=pucnty.county_code
andctr.state_code=pucity.state_code
andctr.county_code=pucity.county_code
andctr.city_code=pucity.city_code
and(pucity.primary_flag='Y'orsubstr(pucity.city_code,1,1)='U')
andctr.filing_status_code=hrl.lookup_code
andhrl.lookup_type='US_LIT_FILING_STATUS'
andctr.state_code=psd.state_code(+)
andctr.county_code=psd.county_code(+)
andctr.city_code=psd.city_code(+)
andctr.school_district_code=psd.school_dst_code(+)
andctr.assignment_id=paaf.assignment_id
andnvl(paaf.effective_end_date,sysdate)>sysdate1
andpaaf.person_id=ppf.person_id

andppf.employee_number='1309'
orderby
1,2
Postedbysravanat8:28PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:JobWorkPreferences

select
pjt.name"Job",

pdf.work_any_location"AllLocations",
pdf.passport_required"PassportRequired",
pdf.relocation_required"RelocationRequired",
pdf.relocate_domestically"RelocationforPosition",
pdf.travel_required"TravelRequired",
pdf.work_duration"WorkDuration",
pdf.work_hours"WorkHours",
pdf.service_minimum"MinimumService",lookup:per_lengths_of_service
pdf.work_schedule"WorkSchedule",lookup:per_work_schedule
pdf.fte_capacity"FTECapacity",lookup:per_work_hours
pdf.work_any_country"AllCountries",
pdf.relocate_internationally"WillingtoRelocate",
pdf.other_requirements"RequiredLocations",
ptv1.territory_short_name"RquiredCountries1",
hrl1tl.location_code"Location1",
ptv2.territory_short_name"RquiredCountries2",
hrl2tl.location_code"Location2",
ptv3.territory_short_name"RquiredCountries3",
hrl3tl.location_code"Location3",

pj.job_id
from
per_deployment_factorspdf,
per_jobspj,
per_jobs_tlpjt,
fnd_territories_vlptv1,
fnd_territories_vlptv2,
fnd_territories_vlptv3,
hr_locations_no_joinhrl1,
hr_locations_no_joinhrl2,
hr_locations_no_joinhrl3,
hr_locations_all_tlhrl1tl,
hr_locations_all_tlhrl2tl,
hr_locations_all_tlhrl3tl
where
1=1
andpdf.job_id=pj.job_id

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

11/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andpj.job_id=pjt.job_id
andpjt.language=userenv('LANG')
andptv1.territory_code(+)=pdf.country1
andptv2.territory_code(+)=pdf.country2
andptv3.territory_code(+)=pdf.country3
andhrl1.location_id(+)=pdf.location1
andhrl2.location_id(+)=pdf.location2
andhrl3.location_id(+)=pdf.location3
andhrl1.location_id=hrl1tl.location_id(+)
andhrl2.location_id=hrl2tl.location_id(+)
andhrl3.location_id=hrl3tl.location_id(+)
anddecode(hrl1tl.location_id,null,'1',hrl1tl.language)=decode(hrl1tl.location_id,null,'1',userenv('LANG'))
anddecode(hrl2tl.location_id,null,'1',hrl2tl.language)=decode(hrl2tl.location_id,null,'1',userenv('LANG'))
anddecode(hrl3tl.location_id,null,'1',hrl3tl.language)=decode(hrl3tl.location_id,null,'1',userenv('LANG'))

andpjt.name='AA900.AdministrativeAssistant'
orderby
1,2,3
Postedbysravanat8:26PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:Contracts

select
per.employee_number"EmployeeNumber",

per.full_name"FullName",
con.reference"ContractReference",
asg.assignment_number"AssignmentNumber",
hr_person_type_usage_info.get_user_person_type(sysdate,per.person_id)"PersonType",
per.applicant_number"ApplicantNumber",
pps.date_start"HireDate",
substr(hr_general.decode_lookup('CONTRACT_TYPE',con.type),1,80)"ContractType",
substr(hr_general.decode_lookup('CONTRACT_STATUS',con.status),1,80)"ContractStatus",
substr(hr_general.decode_lookup('CONTRACT_STATUS_REASON',con.status_reason),1,80)"ContractStatusReason",
con.description"ContractDescription",
con.duration"Duration",
substr(hr_general.decode_lookup('QUALIFYING_UNITS',con.duration_units),1,80)"DurationUnits",
con.contractual_job_title"ContractualJobTitle",
con.parties"Parties",
substr(hr_general.decode_lookup('CONTRACT_START_REASON',con.start_reason),1,80)"StartReason",
substr(hr_general.decode_lookup('CONTRACT_END_REASON',con.end_reason),1,80)"EndReason",
con.number_of_extensions"NumberofExtensions",
con.extension_reason"ExtensionReason",
con.extension_period"ExtensionPeriod",
substr(hr_general.decode_lookup('QUALIFYING_UNITS',con.extension_period_units),1,80)"ExtensionPeriodUnits",
greatest(con.effective_start_date,per.effective_start_date)"EffectiveStartDate",
least(con.effective_end_date,per.effective_end_date)"EffectiveEndDate",
substr(hr_general.decode_lookup('DOCUMENT_STATUS',con.doc_status),1,80)"DocumentStatus",
con.doc_status_change_date"DateofChange",
fnd_attachment_util_pkg.get_atchmt_exists('PER_CONTRACTS',
con.contract_id,null,null,null,null,
'PERWSCTR','O')"AttachmentExists",

asg.people_group_id,
per.business_group_id,
per.person_id
from
per_people_fper,
per_assignments_fasg,
per_person_typesppt,
per_periods_of_servicepps,
per_contracts_fcon,
per_business_groupsbg
where
con.person_id(+)=per.person_id
andpps.person_id=per.person_id
andasg.person_id=per.person_id
andasg.assignment_typein('E','C')
andppt.person_type_id=per.person_type_id
andsysdatebetweenasg.effective_start_dateandasg.effective_end_date
andsysdatebetweenper.effective_start_dateandper.effective_end_date
andper.business_group_id=bg.business_group_id

andbg.name='VisionCorporation'

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

12/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andper.employee_number='388'
orderby
1,2,3,4
Postedbysravanat8:26PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:ContractDetails

select
ppf.employee_number"EmployeeNumber",

pcf1.reference"Reference",
hr_contract_api.get_meaning(pcf1.type,'CONTRACT_TYPE')"Type",
hr_contract_api.get_meaning(pcf1.status,'CONTRACT_STATUS')"Status",
hr_contract_api.get_meaning(pcf1.status_reason,'CONTRACT_STATUS_REASON')"StatusReason",
pcf1.description"Description",
hr_contract_api.get_meaning(pcf1.doc_status,'DOCUMENT_STATUS')"DocumentStatus",
doc_status_change_date"DateofChange",
hr_contract_api.get_active_start_date(pcf1.contract_id,sysdate,pcf1.status)"ActiveDates:Start",
hr_contract_api.get_active_end_date(pcf1.contract_id,sysdate,pcf1.status)"ActiveDates:End",
hr_contract_api.get_pps_start_date(pcf1.person_id,
hr_contract_api.get_active_start_date(pcf1.contract_id,
sysdate,pcf1.status))"PerofSerDates:From",
hr_contract_api.get_pps_end_date(pcf1.person_id,
hr_contract_api.get_active_start_date(pcf1.contract_id,
sysdate,pcf1.status))"PerofSerDates:To",
pcf1.duration"Duration",
hr_contract_api.get_meaning(pcf1.duration_units,'QUALIFYING_UNITS')"Units",
hr_contract_api.get_meaning(pcf1.start_reason,'CONTRACT_START_REASON')"StartReason",
hr_contract_api.get_meaning(pcf1.end_reason,'CONTRACT_END_REASON')"EndReason",
pcf1.contractual_job_title"ContractualJob",
pcf1.parties"Parties",
pcf1.extension_period"ExtensionPeriod",
hr_contract_api.get_meaning(pcf1.extension_period_units,'QUALIFYING_UNITS')"ExtensionPeriodUnits",
pcf1.extension_reason"ExtensionReason",
pcf1.number_of_extensions"NumberofExtensions",
pcf1.effective_start_date"EffectiveDates:From",
pcf1.effective_end_date"EffectiveDates:TO",

pcf1.contract_id,
pcf1.person_id,
pcf1.business_group_id
from
per_contracts_fpcf1,
per_people_fppf,
per_business_groupsbg
where
1=1
andpcf1.person_id=ppf.person_id
andsysdatebetweenppf.effective_start_dateandppf.effective_end_date
andppf.business_group_id=bg.business_group_id

andbg.name='VisionCorporation'
andppf.employee_number='388'
orderby
1,2,3
Postedbysravanat8:26PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:EventsandBooking
select
hr.meaning"Type",
pe.date_start"Date:Start",
pe.date_end"Date:End",
pe.time_start"Time:Start",
pe.time_end"Time:End",
hotl.name"OrgRunBy",
hltl.location_code"Location",

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

13/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
hl.timezone_code"TimeZone",
pe.external_contact"ExternalContact:Name",
pe.contact_telephone_number"Externalcontact:Telephone",
pap.full_name"InternalContact:Name",
nvl(pap.employee_number,pap.npw_number)"InternalContact:Number",
(selectfull_name
fromper_all_people_f
whereperson_id=pb.person_id
andsysdatebetweeneffective_start_dateandeffective_end_date)"BookingsName",
(selectemployee_number
fromper_all_people_f
whereperson_id=pb.person_id
andsysdatebetweeneffective_start_dateandeffective_end_date)"WorkerNumber",
(selectapplicant_number
fromper_all_people_f
whereperson_id=pb.person_id
andsysdatebetweeneffective_start_dateandeffective_end_date)"ApplicantNumber",

pe.event_id,
pe.business_group_id,
pe.assignment_id

from
per_eventspe,
per_bookingspb,
per_all_people_fpap,
hr_lookupshr,
hr_locations_all_tlhltl,
hr_locations_no_joinhl,
hr_all_organization_unitsho,
hr_all_organization_units_tlhotl
where
1=1
andho.organization_id=hotl.organization_id(+)
andpe.organization_run_by_id=ho.organization_id(+)
andpe.event_or_interview='E'
andpe.type=hr.lookup_code
andpe.event_id=pb.event_id
andhr.lookup_type=decode(pe.emp_or_apl,'E','EMP_EVENT_TYPE','A','APL_EVENT_TYPE')
andpe.location_id=hl.location_id(+)
andpe.internal_contact_person_id=pap.person_id(+)
andpe.date_startbetweennvl(pap.effective_start_date,pe.date_start)
andnvl(pap.effective_end_date,pe.date_start)
anddecode(hotl.organization_id,null,'1',hotl.language)=decode(hotl.organization_id,null,'1',userenv('LANG'))
andhl.location_id=hltl.location_id(+)
anddecode(hltl.location_id,null,'1',hltl.language)=decode(hltl.location_id,null,'1',userenv('LANG'))

andhr.meaning='OrientationDay'
orderby
1,2,3,4,5
Postedbysravanat8:25PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Query:OrganizationManager

select
org_tl.name"Organization",
ppf.full_name"Manager",
fnd_date.canonical_to_date(org_info2.org_information3)"StartDate",
fnd_date.canonical_to_date(org_info2.org_information4)"EndDate",

org.organization_id,
org.business_group_id,
ppf.person_id
from
hr_all_organization_unitsorg,
hr_all_organization_units_tlorg_tl,
hr_organization_informationorg_info2,
per_all_people_fppf
where
1=1
andorg_info2.organization_id=org.organization_id
andorg_info2.org_information_context='OrganizationNameAlias'
andorg_info2.org_information2=to_char(ppf.person_id(+))
andorg.organization_id=org_tl.organization_id

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

14/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries
andorg_tl.language=userenv('LANG')
andexists(selectnull
fromhr_org_info_types_by_classoitbc,hr_organization_informationorg_info
whereorg_info.organization_id=org.organization_id
andorg_info.org_information_context='CLASS'
andorg_info.org_information2='Y'
andoitbc.org_classification=org_info.org_information1
andoitbc.org_information_type='OrganizationNameAlias')
and(decode(hr_security.view_all,
'Y','TRUE',
hr_security.show_record('HR_ALL_ORGANIZATION_UNITS',org.organization_id))='TRUE'
anddecode(hr_general.get_xbg_profile,
'Y',org.business_group_id,
hr_general.get_business_group_id)=org.business_group_id
ordecode(hr_security.view_all,
'Y','TRUE',
hr_security.show_record('PER_ALL_PEOPLE_F',
ppf.person_id,
ppf.person_type_id,
ppf.employee_number,
ppf.applicant_number))='TRUE'
anddecode(hr_general.get_xbg_profile,
'Y',ppf.business_group_id,
hr_general.get_business_group_id)=ppf.business_group_id)

andorg_tl.name='Sales'
orderby
1,2
Postedbysravanat8:25PM

Nocomments:

Linkstothispost

Labels:CoreHRQueries

Home

OlderPosts

Subscribeto:Posts(Atom)

Feedjit

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

15/16

18/07/2016

SRAVANORACLEAPPSHRMS:CoreHRQueries

LiveTrafficFeed
AvisitorfromMasjidTanah,
Melakaviewed"SRAVAN
ORACLEAPPSHRMS:Query
toFindAllActiveEmployees
andCurrentSalary"5minsago
AvisitorfromIndiaviewed
"SRAVANORACLEAPPS
HRMS:SSHRQueries"13mins
AvisitorfromHyderabad,
ago
AndhraPradeshviewed
"SRAVANORACLEAPPS
HRMS:OracleHRMS
Scripts(Queries)Employee
AvisitorfromAustriaviewed
Relation"41minsago
"SRAVANORACLEAPPS
HRMS:QuerytogetAbsence
DetailEmployeewise.
ApprovedAbsencedetails."58
AvisitorfromMuscat,Masqat
minsago
viewed"SRAVANORACLE
APPSHRMS:OracleHRMS
QueryforGradeandSalary
AvisitorfromBangalore,
History"1hr26minsago
Karnatakaviewed"SRAVAN
ORACLEAPPSHRMS:Basic
PayrollTablesandtheirlinks"1
AvisitorfromIndiaviewed
hr52minsago
"SRAVANORACLEAPPS
HRMS:HRMSWindowsand
theirNavigationPaths"2hrs52
AvisitorfromKualaLumpur
minsago
viewed"SRAVANORACLE
APPSHRMS:CoreHR
Queries"3hrs27minsago
AvisitorfromIndiaviewed
"SRAVANORACLEAPPS
HRMS:HRMSTerminology"3
hrs43minsago
AvisitorfromKuwait,Al
Kuwaytviewed"SRAVAN
ORACLEAPPSHRMS:Query
toFindoutallEarningand
RealtimeviewGetFeedjit

TotalPageviews

3 6 3 6 8
@sravan.Etherealtemplate.PoweredbyBlogger.

http://sravan20apps.blogspot.in/search/label/Core%20HR%20Queries

16/16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy