We consider a population of individuals on
whom we wishes to represent various relations. One wishes, among
others, to model classic relations like : "Marriage", " Child of "...
The system to be developed will have to take into account the modeling
the storage and the treatment of the relations of relationships in the
population of reference.
Data
dictionary
Mnemonic
Wording
Numind
Number of the individual
Nom
Name of the individual
Sexe
Sex of the individual : M or F
Dtnaiss
Date of birth of the individual
Nation
Nationality of the individual
Dept
Department where the individual
lives
Dtmariage
Date of marriage
To model the relations "Marriage" and " Child of ",
the attribute Numind will be brought to play several roles :
1-If the individual is of male sex, that of the "husband" ( NumindMari)
or that of the "father" ( NumindPère)
2-If the individual is of female sex, that of the "wife" ( NumindFemme)
or that of the "mother" ( NumindMère)
3-Whatever is the sex of the individual, that of "child of " (
Numindenfant)
Diagram
of data
For a further information on the different
stages for building the diagram of data refer, in these pages, to the
column DB Design.
The attributes NumindMari, NumindFemme,
Dtmariage were not classified in the preceding stage, they intervene in
compound FD which is the following one:
The "optimal" data structure is the
following one (keys are in bold type):
In this diagram, relations between tables
were not (to simplify reading) represented because they depend on
treatments, and so on various roles that the attribute Numind is going
to play, according to the questions that will be asked.
Queries
To visualize the contents of each table of
the database, type :
SELECT * FROM Name_of_the_table;
within a frame containing the button "Execute".
Note to english readers : The
value of a string attribute must be spell in french. To see the real
content of string attributes, use the command above.