Let me apologize in advance for the simplicity of this question (I heard Jeff's podcast and his concern that the quality of the questions will be "dumbed down"), but I'm stuck. I'm using AquaData to hit my Informix DB. There are quirky little nuances between MS SQL and Informix SQL. Anyway, I'm trying to do a simple nested expression and it hates me.
select
score,
count(*) students,
count(finished) finished,
count(finished) / count(*)students
-- round((count(finished) / count(*)students),2)
from now_calc
group by score
order by score
The line with the simple division expression returns the percentage of people who finished, which exactly what I want...I just need the result rounded to 2 places. The commented line (--) does not work. I've tried every variation I can possibly think of.
*I'm NOT trying to use lines 5 & 6 at the same time