I'm trying to get features back that are outside the intersection of themselves and a polygon defined in a query.
When I run the query with the intersection set to true (ie. =1
) the results are normal and expected.
However, when I use the not equal to flag (!=
or <>
), I get very unexpected numbers - many records per student, and even when using the distinct flag, it seems the STIntersects
function isn't respected.
select
Students.shape
from Students
join
Boundaries
on (Points.shape.STIntersects(Boundaries.shape) !=1)
where Boundaries.BNum = '408'
Can the STIntersects function handle this type of request?
Thanks!!!