Relational Database Project Guide
Relational Database Project Guide
I) Introduction
The purpose of this project is to allow you to create your own database. This will enable
to cover several stages of creating a database from design to
achievement. However, you will have three objectives:
General Constraints
Determination of the Project Subject
Team project
1
Note: The groups have already been formed, please check the file to determine the number and the
members of your group.
Technical constraints.
Accountability
Throughout the project, you are asked to take on these two distinct roles:
➢ The client who has a specific need (you will do the identification yourself)
requirements).
➢ The consultant in the field of databases who develops the solution.
Global objectives
The aim of the project is to allow the student to become familiar with the various concepts related to
databases through a real project by going through several stages of implementation:
➢ Objective 1
• Identification of a need.
• Design and modeling of an external data model (EA model).
• Documentation.
➢ Objective 2
• Design of an internal data model (transformation process of the EA model
towards the MR model).
• Normalization.
➢ Objective 3
• Implementation of the MR in a relational database using SQL language.
• Creation of all objects (table, constraints, procedures, etc.).
• Writing relevant queries.
• Presentation.
2
Objective 1: Entity-relationship model
This first part of the project is focused on design and more specifically on the model.
entity-relationship (ER). You are asked to:
Deliverables.
An introduction:
2. A functional description:
➢ it is a concise explanation, in text and images, of the desired features for the database
of data;
➢ you must use non-technical terms in everyday language that can be understood by
a novice reader about databases: your client;
➢ ordinary user
➢ manager
➢ administrator
➢ etc.
4. The entity-relationship model including all relevant constraints. In this scheme, you must
attach the following additional information:
3
5. Five examples of desired requests:
➢ For each request, you must include a clear text aimed at describing the objective of the
request.
➢ It is not appropriate here to provide the SQL code for the query, but only what
Information must be obtained and which entities are concerned.
➢ At least one of your queries must use a date type field.
4
Objective 2: Relational model
This part of the project involves carrying out the second design step: the relational model.
asks you to :
➢ make the transformation from the entity-relationship model to the relational model;
➢ perform the normalization of your relational model up to the third normal form
Deliverables
1. A section 'Transformation of the EA model to the relational model' explaining step by step the
transformation of the entity-relationship model to the relational model for the three most important entities
complexes of your EA model. In fact, you are asked to justify the transformation of each
attribute but also the transformation of all related associations. For example, you must
Specify for each association why you chose such primary keys and such keys.
foreigners and why you placed the association attributes in such a location.
2. A 'Normalization' section explaining step by step the normalization of the three relations (tables) the
more complex than your relational model.
Specific constraints
➢ Even if you are asked to explain only three elements of the transformation and
from normalization, you need to perform a complete transformation and normalization
complete your models.
➢ For the diagram, you need to use the graphical notation presented in the slides.
"Relational model". You must have at least three examples of tuples for each.
relationships (tables).
5
Objective 3: SQL Development.
This part of the project involves implementing your project in a DBMS. You must
produce all the scripts necessary for the implementation of your project with MySQL. You are asked to:
familiarize yourself with the MySQL DBMS;
➢ respect the essence of your design efforts while adding the essential elements
in the realization
• Correction of your model according to the latest indications from your diagram
relational;
• adjustment of primary and foreign keys if necessary;
• add database objects when necessary (indexes, views, queries
prepared, stored procedures, triggers, etc.
➢ create all the necessary SQL scripts for the implementation of your project (clear and well-structured scripts
documented);
Deliverables
You must produce a ZIP file that must contain the following three files:
1. file [Link]: this file must contain the script to create ALL elements
of your project (don't forget that you must first erase any existence of objects
existing beforehand) :
tables;
attributes;
constraints, etc.
2. [Link] file: this file must contain the script for all insertions of
test data of your project.
3. [Link] file: this file must contain all the requested queries.
Specific constraints
You are asked to populate your database. This involves making the necessary insertions.
allowing to perform tests on the database. You are asked to insert at least 5
records per table (3 records per link table for n to n associations). It
It is essential that the added data is consistent with the project and with each other.
The goal is to provide a concrete example of what your database might look like.
➢ You are asked to add a script containing the queries. This script must include the 10
following requests:
• the 5 queries that you described in the first objective;
• an additional relevant request performing a calculation on time;
• an additional relevant query using the 2 clauses of the SQL language;