Advertisement
gsemmobile

Untitled

Jun 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.50 KB | None | 0 0
  1. SELECT wb.WBS_ID, wb.REF_NUMBER, wb.NAME WBS_NAME, poi.NAME POI_NAME, poi.OC_POI_CATEGORY_ID, poi.SHORT_NAME,
  2. poi.STREET || ' ' || poi.STREET_NR || ' ' || poi.LOCATION || ' ' || poi.POST_CODE || ' ' || poi.COUNTRY AS Address,
  3. initcap(gui.FIRST_NAME) || ' ' || initcap(gui.LAST_NAME) AS Name
  4. FROM gui_users gui, oc_poi poi, wbs wb
  5. WHERE gui.poi_id = poi.poi_id
  6. AND poi.poi_id = wb.poi_id
  7. --and poi.operation_center_id = oc.operation_center_id
  8. AND UPPER(poi.country) LIKE 'BE'
  9. AND gui.poi_id IS NOT NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement