sql >> Base de Datos >  >> RDS >> Mysql

MySQL Calcular Porcentaje

prueba esto

   SELECT group_name, employees, surveys, COUNT( surveys ) AS test1, 
        concat(round(( surveys/employees * 100 ),2),'%') AS percentage
    FROM a_test
    GROUP BY employees

DEMO AQUÍ