Chapter 3 Data Merise
Chapter 3 Data Merise
I- Functional Dependencies
We say an attribute, B, has a functional dependency on
another attribute, A, if for any two records, which have
the same value for A, then the values for B in these two
records must be the same. We illustrate this as:
A →B
Example: Suppose we keep track of employee email
addresses, and we only track one email address for each
employee. Suppose each employee is identified by their
unique employee number. We say there is a functional
dependency of email address on employee number:
employee number → email address
Exemple
Problem
1 Specification
Let consider the case of realisation of the data base of the students of the national
higher school of applied statistics and economy (ENSEA) of Abidjan in Côte
d’Ivoire. In this data base, we are called to manage notably: (1) students
characterised each by a registration number, a name, a surname, the year of first
registration, the date of bird and the sex; (2) courses characterised each by au code,
a name, a level and the hourly quota; (3) marks of students, teachers characterised
each by a code, a name, a surname, a speciality, a grade and a sex; (4) the option
(Mathematic, Economy,…), the category (ISE, ITS,…), the level and the function
(delegate or not) of each student; The constraints are as follow. 1. The registration
code belongs to one and only one student. 2. The registration code is sufficient to
determine all other characteristics of the student. 3. The mark depends on the
student, the course and the year. 4. Each course has only one principal teacher. 5.
The same teacher can be principal teacher for many courses, independently to the
level of the course.
2 The expected result.
The data base should produce answers to the following preoccupations: Extract all
female students who have a mark greater than 12 in Information System in 2009.
Extract all the principal teachers for the course Data base since 2007. Extract and
order by level and by option all the delegates