select unique extension
from directtemplate, directcustom
where directtemplate.recordno = directcustom.recordno
  and (directcustom.telephone is NULL or directcustom.telephone = " ")
order by extension

