1
CS 2550 / Spring 2006 Principles of Database Systems
Alexandros Labrinidis University of Pittsburgh 02 – Relational Model
Alexandros Labrinidis, Univ. of Pittsburgh
2
CS 2550 / Spring 2006
Relational Model
It is the most popular implementation model
Simplest, most uniform data structures Most formal (algebra to describe operations)
Introduced in 1970 (by E. F. Codd) Everything from real world is represented by relations
(i.e. tables)
Each table has multiple rows and columns
Row in a table “binds” values together (row = tuple) Alexandros Labrinidis, Univ. of Pittsburgh
3
CS 2550 / Spring 2006
tuple t
Relations
350 Round Hill A-305 700 Redwood A-222 750 Brighton A-217 700 Miami A-215 900 Brighton A-201 400 Perryridge A-102 500 Downtown A-101 balance branch-name account-number
The account relation Attributes (=columns) Domain: set of permitted values
t[account-number] = A-215
Alexandros Labrinidis, Univ. of Pittsburgh
4
CS 2550 / Spring 2006
Relations are sets
350 Round Hill A-305 700 Redwood A-222 750 Brighton A-217 700 Miami A-215 900 Brighton A-201 400 Perryridge A-102 500 Downtown A-101 balance branch-name account-number 350 Round Hill A-305 750 Brighton A-217 700 Redwood A-222 500 Downtown A-101 900 Brighton A-201 700 Miami A-215 400 Perryridge A-102 balance branch-name account-number