select staff_tb.department, concat( round( (count(t1.department) / count(staff_tb.department)) * 100, 1 ), '%' ) as ratio from ( select staff_tb.staff_id, staff_name, department, round( timestampdiff(minute, first_clockin, last_clockin) / 60, 1 ) as worktime from staff_tb join attendent_tb a on staf...