Chapter 3 Module 3 Cc105
Chapter 3 Module 3 Cc105
THE RELATIONAL
DATABASE MODEL
Prepared by:
PATRICK Q. RAMOS, MIT
Objectives:
At the end of this chapter, the students should be able
to:
Understand the concept of relations as the relational
model’s basic component.
Understand the characteristics of a relational table.
Know the different data types applicable to the
relational database model.
Know the concept keys in a relational database model
and how each keys may differ from one another.
THE LOGICAL VIEW OF THE
RELATIONAL DATABASE MODEL
The idea of the relational database model is that data in a specific table is directly
associated with all other items in that same table. The logical view of the relational
database model is facilitated by the creation of data relationships based on a logical
construct known as a relation. Because a relation is a mathematical construct, end
users find it much easier to think of a relation as a table.
A table is perceived as a two – dimensional structure composed of rows and columns.
A table is also called a relation because the relational model’s creator, E. F. Codd,
used the term relation as a synonym for table. It was based on the mathematical set
theory from which Codd derived his model. Because the relational model uses
attribute values to establish relationships among tables, many database users
incorrectly assume that the term relation refers to such relationships. Many then
incorrectly conclude that only the relational model permits the use of relationships.
Table 1 shows the characteristics of a table in lieu of
the relational database model.
Integers
Fixed – length decimals
Floating points
Dates and times
Complex Data Types. This encompasses object data types.
Available object data types vary for different relational
databases. Some relational databases provide more object
– relational attributes and functionality than others.
Complex data types include any data types breaching the
object – relational database divide including items such as
binary objects, reference pointers, collection arrays and
even the capacity to create user – defined types.