Skip to main content

Employees enrolled in a medical event(Executive Health Checkup) in Oracle HRMS

SELECT papf.employee_number employee_id, papf.full_name NAME,
       pe.TYPE || ' - ' || pe.date_start || '-' || pe.date_end event_name,
       org.NAME diagnostic_centre, pac.segment3 planning_to_visit        
--       pac.id_flex_num, pac.analysis_criteria_id  ,pe.event_id
FROM   per_analysis_criteria pac,
       hr.per_all_people_f papf,
       per_events pe,
       hr.hr_all_organization_units org
 WHERE papf.employee_number = :employee_number            
   AND TO_CHAR (papf.person_id) = pac.segment30
   AND pac.segment1 = TO_CHAR (pe.event_id)
   AND pe.TYPE = 'EHC'
   AND TO_CHAR (organization_id) IN (segment2)
   AND TRUNC (SYSDATE) BETWEEN TRUNC (papf.effective_start_date)
                           AND TRUNC (papf.effective_end_date)
   AND org.NAME IN (
          SELECT VALUE
            FROM pay_user_tables tbl,
                 pay_user_columns col,
                 pay_user_column_instances_f inst
           WHERE col.user_table_id = tbl.user_table_id
             AND inst.user_column_id = col.user_column_id
             AND user_table_name = 'GP Regional Units'
             AND col.user_column_name LIKE 'Regional EHC'
             AND inst.effective_end_date > SYSDATE);

Comments

Post a Comment

Popular posts from this blog

How to get iRecruitment Vacancy details in Oracle HRMS before Vacancy is approved.

Generally details of Vacancies created in Oracle iRecruitment are store in ‘PER_ALL_VACANCIES’ table. But you cant see the vacancy details in ‘PER_ALL_VACANCIES’ table if the vacancy is NOT approved . Where does Vacancy details get stored  before Approval/Rejection As soon as vacancy is created the vacancy related data goes and resides in some temporary tables. This data is retained within the temporary tables until the vacancy is either Rejected or Approved. These temporary table names begin with name ‘HR_API%’. Not only vacancies but also other Self Service HRMS details are stored in temporary table before completion of it entire transaction, i.e either Approved or Rejected. Coming to iRecruitment vacancy, the data entered by the user is either just stored within one table HR_API_TRANSACTIONS or within HR_API_TRANSACTION_VALUES. The entire data entered by the user is captured in a CLOB column of HR_API_TRANSACTIONS. The data is captured into this CLOB Column be...

How to deploy Oracle Custom Application developed in OAF in Oracle Application Server

Step 1:Create your necessary Database Obejcts i.e.Tables,Views,Sequences,Synonims in Apps schema. i) CREATE TABLE apps.XXGP_JDMS_APP_TABLE (   JD_ID               VARCHAR2 ( 100 BYTE),   APP_USER_NAME       VARCHAR2 ( 100 BYTE),   APP_STATUS          VARCHAR2 ( 100 BYTE),   APP_LEVEL           NUMBER ,   APPROVER_COMMENTS   VARCHAR2 ( 1000 BYTE),   NOTIFICATION_ID     VARCHAR2 ( 100 BYTE),   CREATED_BY          NUMBER ,   CREATION_DATE       DATE ,   LAST_UPDATE_LOGIN   NUMBER ,   LAST_UPDATED_BY     NUMBER ,   LAST_UPDATE_DATE    DATE ) ii) DROP SEQUENCE APPS . GP_JDMS_TRX_SEQ ; CREATE SEQUEN...

Query for Employee's Time Card information retrieval

SELECT DISTINCT paaf.assignment_id, hshwf.date_worked,                          TO_CHAR (hshwf.date_worked, 'YYYY') YEAR,                          TO_CHAR (hshwf.date_worked, 'Month') MONTH,                          papf.employee_number,                          hshwf.time_in, hshwf.time_out, hshwf.hours,                          --petf.element_name,                          (select petf1.element_name                           from hr.pay_element_types_f petf1                     ...