select distinct DEPT.b from DEPT,NAME where NAME.a like '%'||DEPT.B||'%';