i'm designing a demographic database in which i have to register information about cities, counties and population. In details:
- each city has its name, county in which it is, a unique ID,
TotalMen, TotalWomen, TotalPopulation
and the details about population organized in the following way:
+ for each age, starting from 0 to 100 there is a TotalMen,
TotalWomen, and a Total field:
see the attched pics for an example (in the pic: eta' is age, Totale Maschi is TotalMen, TotaleFemmine is TotalWomen and Maschi + Femmine is TotalPopulation)
these datas are taken from various .cvs files
Now my problem is how to add the details of the population..... I thought to start with this structure:
and put in a separate place (tables, another database, ....) the details because the queries involve most of the time the TotalMen, TotalWomen and TotalPopulation (i know that in this way is not that normalized but it would keep simpler and faster the queries but any suggestion is very welcome). Don't know well how to proceed, considering that there are 9 counties and a total of 390 cities so i have to memorize 390 tables like the one you saw before...... i thought also to divide the database in counties but the same problem pop up..... how to organize the age table details......
What do you think? thx in advance for all :) .