SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2. s.id,
  3. s.geom,
  4. s.name,
  5. l.city as municipality,
  6. l.store_a,
  7. l.store_b,
  8. l.store_ab,
  9. l.nonestore_a,
  10. l.nonstore_b,
  11. l.nonstore_ab,
  12. case when store_a = true or store_b = true
  13.           or nonestore_a = true or nonstore_b = true then 'ALLOWS'
  14.  
  15.      when store_a = true or store_b = true then 'any_store'
  16.  
  17.      when nonstore_med = true or nonestore_rec = true then 'any_nonstore'
  18.  
  19. else 'NOT_ALLOWED'end as allowed_boolean
  20.  
  21.  
  22. FROM cities as s
  23. JOIN license_types as l
  24. on s.name = l.city
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top