Lecture 6 ER - Relational Mapping
Lecture 6 ER - Relational Mapping
Lecture 5
Requirements
• Special handout
ER to Relational Mapping
• This refers to the creation of the database
schema
What is a Relation?
• A relation is a table that holds the data we are
interested in. It is two-dimensional and has
rows and columns.
• Each entity type in the ER model is mapped
into a relation.
– The attributes become the columns.
– The individual entities become the rows.
• Relations can be represented textually as:
tablename(primary key, attribute 1, attribute
2, ... , foreign key)