FOR EXAMPLE:
- locality: Croatian 1
- number of submissions: 4
- Most common disease: Conjutivite
I have these two query's but they do not work together, just one or the other
SELECT localidade, count(localidade) AS qt FROM tb_grafico group by localidade;
SELECT localidade, tipo_doenca, COUNT(tipo_doenca) as qtidade FROM tb_grafico
where localidade='Croatá 1'
GROUP BY tipo_doenca
ORDER BY COUNT(tipo_doenca) DESC
LIMIT 1;
Preferably in a single querry sql