Advertisement
psi_mmobile

Untitled

Mar 23rd, 2021
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.58 KB | None | 0 0
  1. SELECT * FROM wbs
  2. WHERE wbs_status_id = 0
  3. AND poi_id IN (SELECT poi_id FROM oc_poi op,(SELECT name, location || ' ' || post_code || ' ' || street || ' ' || country || ' ' || street_nr ADDRESS, COUNT(*) dups FROM oc_poi
  4. WHERE oc_poi_category_id = 101901
  5. AND oc_poi_status_id = 0
  6. GROUP BY name, location || ' ' || post_code || ' ' || street || ' ' || country || ' ' || street_nr
  7. HAVING COUNT(*) > 1) dup_records
  8. WHERE location || ' ' || post_code || ' ' || street || ' ' || country || ' ' || street_nr = dup_records.ADDRESS
  9. AND op.name = dup_records.name
  10. AND op.oc_poi_status_id = 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement