Professional Documents
Culture Documents
2 - Chapter 2 - Relational Model of Data - P1
2 - Chapter 2 - Relational Model of Data - P1
Session 2
Chapter 2 - Relational Model of
Data - Part 1
Objectives
5
Contents
3
2.1. An Overview of Data Models
2.1.1. What is a Data Model?
Object-relational model:
Values can have structure, rather than
being elementary type such as string or
integer.
Relations can have associated methods.
2.2. Basics of Relational Model
2.2.1. Attributes
Table = relation.
Column headers = attributes.
Row = tuple
Relation schema = name(attributes) + other structure info.,
e.g., keys, other constraints. Example: Beers(name, manf)
Order of attributes is arbitrary, but in practice we need to assume the
order given in the relation schema.
Relation instance is current set of rows for a relation
schema.
Database schema = collection of relation schemas.
Summary 2: Why Relations?