Databases
Databases
Lecture 3
THE DESIGN PROCESS
OVERVIEW
The task of creating a database application is a complex one,
involving
design of the database schema,
design of the programs that access and update the data,
design of a security scheme to control access to data.
THE DESIGN
PROCESS
OVERVIEW
THE DESIGN PROCESS
OVERVIEW
The database designer must interact with users of the application to
understand the needs of the application (Determine the Data
Requirements).
represent them in a high-level fashion (Conceptual Schema) that
can be understood by the users,
and then translate the requirements into lower levels of the design
(Logical Schema and Internal Schema).
THE DESIGN PROCESS
OVERVIEW
A high-level data model serves the database designer by providing
a conceptual framework in which to specify, in a systematic
fashion,
the data requirements of the database users,
and a database structure that fulfills these requirements.
These requirements should be specified in as detailed and complete
a form as possible.
THE DESIGN PROCESS
OVERVIEW
The conceptual schema includes detailed descriptions of
The entity types, and the attributes of the entities.
Relationships among the entities,
and constraints on the entities and relationships;
these are expressed using the concepts provided by the high-level data
model.
The high-level conceptual schema can also be used as a reference to ensure that
all users’ data requirements are met and that the requirements do not conflict.
The entity-relationship (ER) model is typically used to represent the conceptual
design.
THE DESIGN PROCESS
OVERVIEW
the conceptual schema is transformed from the high-level data
model into the implementation data model using a DBMS
that is often use an implementation data model, such as the
relational (SQL) model.
so the conceptual schema is transformed from the high-level data
model into the implementation data model.
This step is called logical design.
The focus at this point is on describing the data and their relationships
THE DESIGN PROCESS
OVERVIEW
In a physical design phase:
The logical schema is transformed to the internal schema in which
the internal storage structures, file organizations, indexes, access
paths, and physical design parameters for the database files are
specified
THE DESIGN PROCESS
OVERVIEW
In designing a database schema, we must ensure that we avoid two
major pitfalls:
RELATIONSHIP TYPE
ATTRIBUTE
KEY ATTRIBUTE
MULTIVALUED ATTRIBUTE
COMPOSITE ATTRIBUTE
DERIVED ATTRIBUTE
TOTAL PARTICIPATION OF E2 IN R