select department, concat ( round( ((sum(jiaban) / count(distinct staff_id)) * 100), 1 ), '%' ) ratio from ( select a.staff_id staff_id, department, if (diff > 9.5, 1, 0) jiaban fr...