select date,round(sum(type='no_completed')/count(*),3) p
from email e,user u1,user u2
where send_id=u1.id and receive_id=u2.id and u1.is_blacklist=0 and u2.is_blacklist=0
group by date
order by date