Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-- 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
You can’t perform that action at this time.