Skip to content

Instantly share code, notes, and snippets.

@voltgister
Created February 4, 2016 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voltgister/42924c051c7f12e780a6 to your computer and use it in GitHub Desktop.
Save voltgister/42924c051c7f12e780a6 to your computer and use it in GitHub Desktop.
-- Which devices are within which borders?
select r.id, r.name, d.id
from devices as d
inner join regions as r
on contains(r.border, d.location);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment