Advertisement
psi_mmobile

Untitled

Jun 9th, 2022
1,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.78 KB | None | 0 0
  1. SELECT Person.FIRST_NAME,
  2.        Person.LAST_NAME,
  3.        Person.PERSON_ID,
  4.        Person.COMPANY_NR,
  5.        VoPersonCategory.NAME CAT_NAME
  6. FROM V_UPDATABLE_PERSON Person, GU_PERSON GuPerson, V_UPDATABLE_VO_PERSON_CATEGORY VoPersonCategory, PERSON_ROLE PersonRole, VO_ROLE VoRole, ROLE Role
  7. WHERE GuPerson.PERSON_ID = Person.PERSON_ID
  8. AND Person.VO_PERSON_CATEGORY_ID = VoPersonCategory.VO_PERSON_CATEGORY_ID
  9. AND GuPerson.GUI_USER_ID = 144151
  10. AND person.person_status_id = 0
  11. AND Person.PERSON_ID = PersonRole.PERSON_ID
  12. AND PersonRole.VO_ROLE_ID = VoRole.VO_ROLE_ID
  13. AND VoRole.ROLE_ID = Role.ROLE_ID
  14. AND Role.VALIDATION_STATUS_ID >= 81
  15. GROUP BY Person.FIRST_NAME,Person.LAST_NAME,Person.PERSON_ID, Person.COMPANY_NR,VoPersonCategory.NAME
  16. ORDER BY Person.LAST_NAME,Person.FIRST_NAME;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement