Another approach would be to use an operator INwith a subquery. Internal query projects in all regions, specifying a region identifier and an external query, search for territories with selected regions. Although the connections should perform better than the subquery.
select * from territory where region_id in (select region_id from region where devision_id=<division id>)
source
share