Ver originalselect distinct t1.sexo, t1.num,t2.sexo,t2.num from(SELECT sexo, COUNT( sexo ) AS num FROM `empleados` where sexo='M' GROUP BY sexo) t1,(SELECT sexo, COUNT( sexo ) AS num FROM `empleados` where sexo='F' GROUP BY sexo) t2