Guest User

Untitled

a guest
Dec 17th, 2017
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. select *
  2. from (
  3. select
  4. a.id as "id from origin"
  5. ,a.description as "description from origin"
  6. ,b.id as "id from destin"
  7. ,b.description as "description from destin"
  8. from
  9. (select id, description, zip_code, city, country, something_more
  10. from ORIGIN_TABLE) a
  11. ,(select id, description_text as description, zip_code_cd as zip_code, city_name as city, country_name as country,
  12. something_more
  13. from DESTIN_TABLE) b
  14. where
  15. a.zip_code = b.zip_code
  16. order by 2 )
Add Comment
Please, Sign In to add comment