Chapter 3: Relational Model
- Structure of Relational Databases
- Relational Algebra
- Tuple Relational Calculus
- Domain Relational Calculus
- Extended Relational-Algebra-Operations
- Modification of the Database
- Views
Database Systems Concepts 3.1 Silberschatz, Korth and Sudarshan c 1997
' & $ %Basic Structure
- Given sets A1, A2, ..., An a relation r is a subset of
A1 × A2 × ... × An Thus a relation is a set of n-tuples (a1, a2, ..., an) where ai ∈ Ai
- Example: If
customer-name = {Jones, Smith, Curry, Lindsay} customer-street = {Main, North, Park} customer-city = {Harrison, Rye, Pittsfield} Then r = {(Jones, Main, Harrison), (Smith, North, Rye), (Curry, North, Rye), (Lindsay, Park, Pittsfield)} is a relation over customer-name × customer-street × customer-city
Database Systems Concepts 3.2 Silberschatz, Korth and Sudarshan c 1997