24.10.2012 Views

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How to fur<strong>the</strong>r improve performance <strong>with</strong><br />

relational operators<br />

• Secondary y filtering… g<br />

Question:<br />

“ Which parcels intersect <strong>the</strong> selected neighborhood?”<br />

SELECT COUNT(*)<br />

FROM parcels a, neighborhoods b<br />

WHERE b.name = ‘WESTWOOD’ AND<br />

st_intersects(a.shape,b.shape) = 1<br />

401 401,522 522 PParcels l<br />

52 Neighborhoods

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!