Advertisement
psi_mmobile

Untitled

Sep 7th, 2022
1,469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.55 KB | None | 0 0
  1. SELECT OcPoiCategory.OC_POI_CATEGORY_ID,
  2.        OcPoiCategory.NAME
  3. FROM OC_POI_CATEGORY OcPoiCategory, V_GUI_USER_OC_POI_CATEGORY VGuiUserOcPoiCategory, OPERATION_CENTER OperationCenter
  4. WHERE OcPoiCategory.OPERATION_CENTER_ID = OperationCenter.OPERATION_CENTER_ID
  5. AND OcPoiCategory.OC_POI_CATEGORY_ID = VGuiUserOcPoiCategory.OC_POI_CATEGORY_ID
  6. AND VGuiUserOcPoiCategory.OC_POI_CATEGORY_ID NOT IN (SELECT home_poi_category_id FROM vo_person_category)
  7. AND VGuiUserOcPoiCategory.GUI_USER_ID = :gui_user_id
  8. AND 'Y' = NVL (OcPoiCategory.is_active, 'Y')
  9. ORDER BY 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement