Relational Data Model - Lec2
Relational Data Model - Lec2
Ted Codd
• After that subsequently
maintained and developed by
Chris Date and Hugh Darwen
among others.
Chris Date
Other Logical Data Models
2.
Notations to Describe the Relational Schema
• Primary Key – The attribute that uniquely
identifies one tuple in a relation from another.
• Candidate Key – Attribute that can act as
primary key. There can be many candidate
keys on one table. One is chosen as primary
key.
• Foreign Key – An attribute that represents a
relationship with another relation. It is a
primary key of one relation which is included
as an attribute in another relation.
Null Values
Staff
Department
Representing 1 : N Relationships
Representing 1 : N Relationships
Staff
Student
Representing M : N Relationships
Taught at
Location
Representing M : N Relationships
Course
Location
Representing M : N Relationships
Taught at