Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Please assist on my code I'm unable to find where is wrong in join conditions

edited Apr 12, 2022 10:18AM in BI Publisher Learning Center 20 comments

select DISTINCT papf.Person_number,

    ppnf.Full_Name,

  pni.NATIONAL_IDENTIFIER_NUMBER,

    Pn.PASSPORT_NUMBER,

  pp.attribute3 as "Business Card Title",

  to_char(ppos.ORIGINAL_DATE_OF_HIRE, 'DD-MM-YYYY') Hire_Date,

  to_char(CURRENT_DATE,'DD-MM-YYYY')

  

  from

       PER_PERSON_SECURED_LIST_V papf,

         PER_PERSON_NAMES_F ppnf,

 PER_ASSIGNMENT_SECURED_LIST_V paaf,

 PER_PERSONS pp,

  PER_NATIONAL_IDENTIFIERS pni,

  PER_PASSPORTS Pn,

  PER_PERSON_TYPES_TL pptl,

  HR_ALL_ORGANIZATION_UNITS haou,

  PER_PERIODS_OF_SERVICE ppos

     

where

papf.person_id=ppnf.person_id

and papf.person_id=paaf.person_id

and paaf.PERSON_TYPE_ID = pptl.PERSON_TYPE_ID

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!