Chapter two db
Chapter two db
Relational Model
Contents
• Introduction
• Terminologies of relations
• Characteristics of relations
• Relational Constraints
• Type of keys
• Relational Integrity
• Key constraints
• Referential constraints
Introduction
• The relational model is a structured approach to
managing data in a database which uses concept
the mathematical relations.
• It organizes data into tables, also known as relations,
which consist of rows and columns.
• The model was first proposed by Dr. E.F. Codd of
IBM Research in 1970.
• This model is widely used in database systems due
to its simplicity and efficiency.
• Current popular RDBMS SQL server and
Access(Microsoft), DB2 and Informix(IBM`).
Terminologies in the Relational Model
• basic terms :
• Relation: A table with rows and columns used to
represent data.
• Tuple(row): A single row in a relation,
representing a single record.
• Attribute(column): A column in a relation,
representing a specific data field.
Cont.…
• Cardinality: The number of tuples (rows) in a relation. It's
a static property of a relation, defining its potential size.
• Degree(arity): The number of attributes (columns) in a
relation schema.
• Relation schema: is made up of relation name and a list
of attributes that describes a relation