Advertisement
psi_mmobile

Untitled

Aug 25th, 2022
1,615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.94 KB | None | 0 0
  1. -- before
  2. SELECT OcPoiCategory.OC_POI_CATEGORY_ID,
  3.        OcPoiCategory.NAME
  4. FROM OC_POI_CATEGORY OcPoiCategory, V_GUI_USER_OC_POI_CATEGORY VGuiUserOcPoiCategory, oc_day_aggreg OcDayAggreg
  5. WHERE VGuiUserOcPoiCategory.OC_POI_CATEGORY_ID = OcPoiCategory.OC_POI_CATEGORY_ID
  6. AND OcPoiCategory.OC_POI_CATEGORY_ID = OcDayAggreg.OC_POI_CATEGORY_ID
  7. AND OcDayAggreg.VO_PERSON_CATEGORY_ID = 100650
  8. AND VGuiUserOcPoiCategory.GUI_USER_ID = 101114
  9. ORDER BY 2;
  10.  
  11. -- after
  12. SELECT OcPoiCategory.OC_POI_CATEGORY_ID,
  13.        OcPoiCategory.NAME
  14. FROM OC_POI_CATEGORY OcPoiCategory, V_GUI_USER_OC_POI_CATEGORY VGuiUserOcPoiCategory, oc_day_aggreg OcDayAggreg
  15. WHERE VGuiUserOcPoiCategory.OC_POI_CATEGORY_ID = OcPoiCategory.OC_POI_CATEGORY_ID
  16. AND OcPoiCategory.OPERATION_CENTER_ID = OcDayAggreg.OPERATION_CENTER_ID
  17. AND OcDayAggreg.VO_PERSON_CATEGORY_ID = 100650
  18. AND VGuiUserOcPoiCategory.GUI_USER_ID = 101114
  19. AND ocpoicategory.is_home_poi_category = 'N'
  20. ORDER BY 2;
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement