‘Chapter-3_ Data Modeling Using the Entity-Retationship Model
3.1 INTRODUCTION Conceptual Database Design
‘The main phases of database design are:
© Requirements Collection and Analysis: purpose is to produce a description of the users’
requirements.
© Conceptual Design: purpose is to produce a conceptrat schema for the database, including
detailed descriptions of entity hpes, relationship types, and constraints. All these are expressed
in lens provided by the data model being used,
+ Lmplemeittation: pupose is to transform the conceptiial schema (which i at a high/abstract
eve) intto a (lower-level) representatonal/imp lementational model supported by whatever DBMS
B to be used,
‘© Physical Design: purpose is to deeide upon the internal storage structures, access paths (indexes), etc.. that
swill be used in realizing the representational model produced in previous phase.
Figure 3.1 shows the database design process,
3.2. Example COMPANY Database
We need to create a database schemm design based on the following (simplified) requirements of the
COMPANY Database:
Employees, departments, and projects
Company is organized. ito: departments
Department controts several projects
Empbyce: require each emphyee’s name, Social Securiy number, address, salary, sex (gender),
and birth date
© Keep track of the dependents of each employee
3.3. Enlity-Relationship (ER) Model
The ER model is a high-level conceptual data model The ER model was introduced by Peter Chen in
1976, and is now the must widely wed conceptual data model
Itrepresents real work situations using concepts, Which are commonly used by people. It allows defining
a representation of the real world at logical levelL.ER model has no facilities to deseribe machine-related
aspects,
In ER model the logical structure of data is captured by indicating the grouping of data into entities. The
ER model abo supports a top-down approach by which details can be given in successive stages,
Inthe ER model, the main concepts are entity, attribute, and relationship.
Entity Types, Entity Sets, Attributes, and Keys,
1. Entities and Attributes
2. Entity Types, Entity Sets, Keys, and Value Sets
3. Initial conceptual Design for the COMPANY DatabaseFigures
Reena wigs
Figure 3.2: An ER Diagram of COMPANY database
fovine Qo
=eSUMMARY OF ER DIAGRAM SYMBOLS( figure 7.14 Navathe)
‘Symbol
©
2
OS
2g
oo Oho
a