Advertisement
psi_mmobile

Untitled

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