Skip to content

Instantly share code, notes, and snippets.

@slarosa slarosa/ABC.sql
Last active Oct 24, 2017

Embed
What would you like to do?
CREATE TABLE A1 AS
SELECT * FROM A WHERE comune = 'Y';
CREATE TABLE B1 AS
SELECT *, ST_Intersection(b.geom,
ST_Buffer(
(SELECT geom FROM A WHERE comune = 'Y'),
X)) as geom1 FROM B as b;
CREATE TABLE C1 AS
SELECT *, ST_Intersection(c.geom,
ST_Buffer(
(SELECT geom FROM A WHERE comune = 'Y'),
X)) as geom1 FROM C as c;
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.