Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. select trim(work_site) as ref_number,
  2. project_name as poi_name,
  3. replace(street,'¿','') as street,
  4. streetnr,
  5. regexp_substr(street,'\d{4}?') as post_code,
  6. trim((regexp_replace(regexp_substr(replace(street,'¿',''),'\d{4}?\s*?\w+?[\.-]*?\s*?\w+$'),'\d+',''))) as location,
  7. replace(tin,'-','') as poi_tin,
  8. planned_start,
  9. creation_date
  10. from oc_poi_sodemat
  11. where work_site is not null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement