Professional Documents
Culture Documents
Relational Model
Relational Model
Lecture Objectives
1. Define relational database schema, table,
attribute and tuple.
2. Describe the characteristics of a relation
3. Explain the function of relational keys
The Relational model
The most popular DBMS model
The relational model,
data is manipulated.
Relational Model Terminology -
Relation
Data is treated as a collection of related relations(tables).
A relation is perceived as a two-dimensional structure
Relational Keys
Relational Model Terminology -
Relational Keys
A key is an attribute(s) that uniquely
identifies a row in a table
A key consists of one or more attributes that
attributes
A super key is not necessarily redundant it can
integrity.
To maintain entity integrity
a null (that is, no data entry at all) is not permitted in the
primary key.
A null is no value at all. It does not mean a zero or a space.
A null is created when you press the Enter key or the Tab
key to move to the next entry without making a prior entry
of any kind. Pressing the Spacebar creates a blank (or a
space).
◦ Nulls, if used improperly, can create problems because
they have many different meanings. For example, a null
can represent:
An unknown attribute value.
A known, but missing, attribute value.
A “not applicable” condition.
Entity Integrity Constraint
A primary Key value must exist
and it must not have a null value
Foreign key (FK)
A primary key in another table
A (FK) is an attribute whose values
functional dependencies.
AB C
BC D
CD E
DE A
What are all of the keys of R?