3
I have these tables:
Client:
cliente
-------
id nome
id_municipio
Municipality:
municipio
-------
id
nome
Regional:
regional
-------
id
nome
Regional_municipio:
regional_municipio
-------
id_municipio
id_regional
On the table regional_municipio
i put for example, municipio 17 refers to regional 1
I need to make a select
give a count
client by regional.
For example:
- Regional 1 has 500 customers
- Regional 2 has 50 customers
- Regional 3 has 100 customers
Being that in the client table I only have the county number, how to do this?