Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Entity sets
• A database can be modeled as:
a collection of entities,
relationship among entities.
• Entity:-set of attributes
Eg:- specific person, company
• Entity set:-set of same type of Entities
Eg:- set of all persons, companies
• Entities have attributes
Eg: people have names and addresses
Entity Sets customer and loan
custome _id customer- customer- customer- loan- amount
name street city number
Attributes
• Attribute types
One to one
One to many
Many to one
Many to many
Mapping Cardinalities