Advertisement
DimitarVasilev

Untitled

Jun 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.42 KB | None | 0 0
  1. SELECT initcap(gu.first_name)||' '||initcap(gu.last_name), op.country, TRIM(BOTH ' ' FROM op.street||' '||op.street_nr||' '||op.location||' '||op.post_code||' '||op.country),
  2. opc.name "Category Name", w.ref_number, w.name "WBS Name"
  3. FROM oc_poi op, gui_users gu, oc_poi_category opc, wbs w
  4. WHERE UPPER(op.country) LIKE 'BE'
  5. AND opc.oc_poi_category_id=op.oc_poi_category_id
  6. AND op.poi_id=gu.poi_id
  7. AND op.poi_id=w.poi_id(+);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement