select siteid, trunklocalid
from routetrunk A
where not exists (
	select dialledno
	from c23_09_2012 B
	where B.siteid = 88
	  and B.outlettype not matches "[EP]"
	  and B.dialledno not in (
		select dialledno
		from c23_09_2012 C
		where C.outletno = A.trunklocalid
	  )
)
	

