This is the SQL query i entered :
select a.gblob_
from sla_lbstr_int_bldg a
where SDO_WITHIN_DISTANCE(a.gblob_, (select b.gblob_
from sla_lbstr_int_bldg b
where b.postal_code='640217'), 'distance=10') = 'true';
And this is the error msg i got :
select a.gblob_
*
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_WITHIN_DISTANCE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 391
ORA-06512: at line 1
I really dont know where i went wrong. Please help.