So basically I have two simple line datasets in Netezza, I want to create a table which just includes lines from dataset 1 that do not intersect any lines from dataset 2.
ST_DISJOINT doesn't seem to work, it returns thousands and thousands of duplicate values, I assume this is because Netezza runs the query row by row and returns a record everytime two specific lines don't intersect?
So I thought I would simply just flag each line from dataset 1 and then just select those without a flag, using UPDATE DATSET 1 WHERE ST_INTERSECTS(dataset1,dataset2).
However this returns a many to one relationship error. Is there a way I can make it only check for the first intersect or somethign to stop it trying to assign multiple values to individual records?
I feel that there is probably a simpler solution to my problem (selecting all lines from set 1 that never intersect any lines from set 2), any help would be greatly appreciated.
Cheers!