As part of my school project, I'm supposed to design/make a database where one can store/update/retrieve yearly data about international trade and transportation. To begin with, I isolated a small part of the database in order to start small.
Firstly I tried to design a diagram that would store the number of passengers (not individual passengers) that embarked/disembarked on/off ships in each port of every country every year and how many local and foreign passengers there were (I don't need those two to interact).
(Ignore the Passengers on the top.) and the
inwards_outwards
entity would give me a table in the database that would look like this:Secondly I tried to design the diagram of a table where I could store Origin-Destination data (e.g. of the passengers that arrived in (or left from ) a country, how many came from (went to) each other country etc.
For instance in 2011, from England 20 passengers flew to France, 10 to Germany, etc. and in 2011, in England arrived 23 from France, 19 from Germany, etc.
and the
od_hellas
entity would give me a table like this:
Questions:
Do the above look OK to you?
Is there a more efficient way to store yearly data?
Is what I'm trying to make doable in the context of a project? Any advice in general?