1
I need a query where I will need to add people by color and race, distinctly, for example, make the sum not only by name, but also by color and race alike. I tried something below, but it’s adding up only the same names.
select COUNT(*), pessoas.nome, qualidades.cor, qualidades.raça
from pessoas, qualidades where pessoas.id_qualidades_pess=qualidades.id_qualidades
group by pessoas.nome
Thank you,
Add the fields
cor
andraça
at theGROUP BY
and has its solution!– João Martins
It worked!!!! Thank you
– Marcelo C. França