In my script, I pass the Object ID as a querystring parameter. how ?idobject=1962
Now, first I need to access from the OBJECTS table of the GeoLat and GeoLng and I have to check again if there are other objects containing the same Geo Data
SELECT GeoLng, GeoLat FROM OBJECTS WHERE ID = 1962
from the previous query I need to read the GeoLng and GeoLat and write the second query as follows
SELECT O.ID FROM OBJECTS O WHERE GeoLng = '12.72812515' AND GeoLat = '47.7794388' AND EXISTS( SELECT ID FROM InfObjects WHERE ID = O.ID )
Can I write these 2 queries in one query? Thanks
source share