Basically, through which command, I could calculate the party that gets the most votes, I know that we have to use the Count and MAX command, but when using it at the same time it gives me an error. I leave the command you make and I get an error. Thanks in advance !!!!!
select partidos.nombre,
max(count(partidos_electores.estado))
from electores, partidos, partidos_electores
where (electores.id_elector=partidos_electores.id_elector
and partidos.codigo_partido=partidos_electores.codigo_partido)
group by partidos.nombre
Appointment in block