Ver originalselect idficha, id_tipoexa, count(*)from examen_otros_laboratoriogroup by idficha, id_tipoexahaving count(*)