Lab 01
Lab 01
Lab Title : Mapping from Scenario into ER Model (Project Part 1 - Level 1)
Chapter : Chapter 3, Chapter 4
Date Assigned :
Due Date : In Lab
_____________________________________________________________________________________
Overview
Conceptual modeling is a very important phase in designing a successful database application. Therefore,
Once the requirements have been collected and analyzed, the next step is to create a conceptual schema
(high-level) for the database. This step is called conceptual design, the conceptual schema is a concise
description of the data requirements of the users and includes detailed descriptions of the entity types,
relationships, and constraints; these are expressed using the concepts provided by the high-level data
model. The Entity-Relationship (ER) model is a popular high-level conceptual data model. This model and
its variations are frequently used for the conceptual design of database applications, and many database
design tools employ its concepts. The ER model is associated with diagrammatic notation, known as ER
diagrams.
Objectives
To covert software requirements (Business rules, requirements, or scenario, data requirements, miniworld)
after the requirements collection and analysis phase, into a conceptual schema (high-level) based on
systematic approach by using diagrammatic notation such as Entity-Relationship diagrams.
Terminologies
• Requirements(R) phase: Requirement analysis is carried out for the final users, or customers, of
the database system by a team of system analysts or requirement experts.
• conceptual schema design phase: examines the data requirements resulting from the
Requirements(R) Phase and produces a conceptual database schema such as ER diagram.
Approaches to Conceptual Schema Design
For conceptual schema design, we must identify the basic components (or constructs) of the schema: the
entity types, relationship types, and attributes. We should also specify key attributes, cardinality, and
participation constraints on relationships, weak entity types, and specialization/ generalization
hierarchies/lattices. Therefore, there are five steps to convert the scenario into a conceptual model as below:
Step 1 - Identify Entities
Step 2 - Identify relationships.
Step 3 - Fill in cardinality and participation.
Step 4 - Identify attributes.
Step 5 - Draw a full ER Diagram
No scenario relationship
A person with the number 954237844 may own a house and may belong
e.g
to a political party.
No scenario relationship
1 Each school offers numerous programs
2 Each program contains many courses
3 Each school employs many lecturers
4 Lecturers can teach many courses
5 Lecturers can teach the same course many times
6 Courses can be taught by more than one lecturer
7 A student is enrolled in only one program
8 Students can be enrolled in many courses at the same time
9 Courses have many students enrolled