tbList
Id | Nome | Genero | Endereco | Estado | ...
The result you would like to group by state and count the number of gender (sex) this way:
+-----------+----------+-----------+
| ESTADO | FEMININO | MASCULINO |
+-----------+----------+-----------+
| SP | 36 | 40 |
| RJ | 44 | 13 |
| MG | 17 | 23 |
...
...
Thank you in advance for the attention of everyone!
PS: Sorry for anything wrong that I did, but I'm still learning to use stackoverflow !