SELECT `texto`,count(*) as total,((count(*) * 100) / (select count(*) from tabla)) as porcentaje FROM `tabla` GROUP BY `texto`