I am working on a project in SpatiaLite and I would like to join together two geometries to create one final geometry that contains both original polygons (Ex. Putting together two Legos). The tricky part is how to make this work in SpatiaLite with the 'Blob' geometry type. I have tried ST_Union but still cannot seem to get any result at all. The result of this will ultimately update a geometry in a table elsewhere.
Here's what I've done so far:
UPDATE table1
SET Shape = (
SELECT ST_Union (a.Shape, b.Shape)
FROM table2 as a
JOIN (
table3 as b
ON a.Shape = b.Shape)
WHERE a.ADDRESS = "" or b.ADDRESS = "");
I realize there are many errors in the syntax of this, I am only just getting used to SQLite and the sytanx versus that of Postgres. Please feel free to make edits.