Положив этот ответ, так как ни один из предложенных до сих пор является правильным
select count(case when status = "accepted" then 1 end) /
count(case when status = "rejected" then 1 end) as Ratio
from my_table
where status in ("accepted","rejected")
Если вам также нужны отдельные подсчеты
select count(case when status = "accepted" then 1 end) Accepted,
count(case when status = "rejected" then 1 end) Rejected,
count(case when status = "accepted" then 1 end) /
count(case when status = "rejected" then 1 end) as Ratio
from my_table
where status in ("accepted","rejected")
Примечание: MySQL не имеет деления наноль проблем.Возвращает NULL, когда отклонено равно 0.