Skip to content

Instantly share code, notes, and snippets.

@rorymalcolm
Created May 1, 2023 14:20
Show Gist options
  • Save rorymalcolm/a9cb9717ec0876643d2e0edb513f87d6 to your computer and use it in GitHub Desktop.
Save rorymalcolm/a9cb9717ec0876643d2e0edb513f87d6 to your computer and use it in GitHub Desktop.
create or replace table joined as
select
location_history.*
, uk_geo.county_name
from location_history, uk_geo
where ST_Within(location_history.geo_location, uk_geo.county_geo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment