Introduction to MERISE method
Introduction to MERISE method
Introduction to MERISE:
1. MRISE steps:
User Requirements (Expression des Besoins des Utilisateurs): In this initial step,
the focus is on understanding and documenting the needs and requirements of the
system's end-users. Analysts interact with stakeholders to gather information about
the system's purpose and goals. The primary deliverable is the User Requirements
Document.
1
CHAPTER 2: Introduction to MERISE methodology
Data Description (Description des Données): In this step, the focus shifts to
defining the data model of the system. Entity-Relationship Diagrams (ERDs) or
similar modeling techniques are used to describe the structure of the data, including
entities, attributes, and relationships. The primary output is the Data Description
Document.
2. MERISE levels:
MERISE is particularly known for its three levels of abstraction, which help in structuring the
analysis and design process. The three levels in MERISE are:
2.1.1. Entities: an "Entity" refers to a major concept or object that is relevant to the
information system being modeled. Each entity has attributes that describe its
properties, and these attributes collectively define the characteristics of the entity.
Entities are typically represented by rectangles, also known as entity boxes. Each
entity box contains the name of the entity.
2
CHAPTER 2: Introduction to MERISE methodology
Attributes are listed within the entity box and are usually displayed below the entity
name.
2.1.3. Primary keys: Each entity in a conceptual data model should have a unique
identifier, known as a primary key. The primary key is crucial for distinguishing
individual records within an entity.
The primary key is indicated by underlining the attribute(s) that make up the
primary key. This visually distinguishes the primary key from other attributes.
Name
Identifier
Attribute 1
Attribute 2
……
Attribute n
Personne Etudiant
NSS Matricule
Nom Nom
Prénom Prénom
Date_Naissance Date_Naiss
Adresse Spécialité
In the picture 1:
3
CHAPTER 2: Introduction to MERISE methodology
Example:
Example:
Figure 3
Picture 4: An order may concern at least one and possibly several products
Figure 4
Figure 3 and Figure 4 represent two simple data conceptual models DCMs. We use
an entity relationship diagram ERD as a graphical representation for these models.
4
CHAPTER 2: Introduction to MERISE methodology
2.1.6. The data dictionary: a data dictionary is a vital tool for documenting and
organizing information about data elements within an information system.
Type: The data type of the element (e.g., integer, string, date).
Commande Facture
N° Commande: ……………...................... N° Facture: ……………......................
Date de commande: ……………………… Code commande: ………………………
Numéro client: ………………………......... Date Facture: ……………………….........
Nom client: ……………………………....... Matricule client: …………………………….......
Adresse client: ……………………….......... Référence Désignation PU Quantité Montant
Référence Désignation Prix unitaire Quantité
Montant total ....................
5
CHAPTER 2: Introduction to MERISE methodology
Note that some different identifiers stands for the same data. For example, both
Num_C and Code_C represent “Numéro de la commande”. In our example,
Num_CL = Code_CL, Num_C = Code_C.
“Montant” and “Montant_T” represent data which can be calculated based on other
variables values: Montant = PU * Qtt and Mont_T = ∑ Montant.
The transition (mapping) from the entity relationship diagram (conceptual model) to
a logical model involves a detailed analysis and refinement process
1. Mapping of regular entity set: Create a separate relation (table) for each
entity.
2. Determine the primary key for each of the relations: The primary key must
uniquely identify any row within the table.
6
CHAPTER 2: Introduction to MERISE methodology
Foreign Key
Child Parent
Foreign Key
7
CHAPTER 2: Introduction to MERISE methodology
Example: Construct appropriate tables for the ER diagram given in the figure
below
The physical level is concerned with the implementation details of the information
system, particularly the structure of the database that will store and manage the data
considering the technical aspects of the chosen database management system
(DBMS):
Each entity in the logical model is mapped to a table in the physical model.
Each attribute in the logical model becomes a column in the corresponding
table. Consider data types, lengths, and constraints applicable to each column.
Confirm and refine the primary keys for each table.
Establish foreign key relationships between tables to maintain referential
integrity.
Ensure that all relationships between tables are well-defined and documented.