Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
-- syntax error
select count(id)/(select count(id) from completedsales/100.0)
from completedsales
group by item
-- works
select count(id)/((select count(id) from completedsales)/100.0)
from completedsales
group by item
-- works
select count(id)/(select count(id)/100.0 from completedsales)
from completedsales
group by item
-- does not work
select count(id)/(select count(id) from completedsales)*100.0
from completedsales
group by item
-- works, the best choice IMHO (highest precedence data type is the leftmost one)
select 100.0*count(id)/(select count(id) from completedsales)
from completedsales
group by item