select id,name from sendtable a where telephone='123456' and 
not exists(select 1 from atable where id=a.id and name=a.name)