यह काम करना चाहिए:
select
(select count(*) from tasks where completed = 1) /
(select count(*) from tasks where completed = 0)
from dual
यह काम करना चाहिए:
select
(select count(*) from tasks where completed = 1) /
(select count(*) from tasks where completed = 0)
from dual