Select to view content in your preferred language

sd_contains in query layer arcgis pro

183
0
05-01-2020 07:17 AM
CocoRulinda
New Contributor

I am quite new to this and try to create a query layer in arcgis pro with the sd_contains function. But i cannot get it right. Am i using it correctly? the syntax i am using is looks like this

SELECT A.*, B.NAME FROM table1 A LEFT JOIN table2 B ON sde.st_contains (B.geometryfield, A.gemoetryfield)=1

Can someone help me? 

The (anonymized) sql query that i received from my db colleague is:

SELECT A.*, B.NAME
FROM table1 A
JOIN table2 B
ON (sdo_contains (B.geometryfield, A.geometryfield) = 'TRUE');

0 Kudos
0 Replies