Documente Academic
Documente Profesional
Documente Cultură
Entity Attribute
CUSTOMER CODE (Primary key)
NAME
ADDRESS
GOODS CODE(Primary key)
PRICE
E-R DIAGRAM
CUSTOMER GOODS
• Relationship:
– Is an association , dependency or link between two or
more entities and its represented by a diamond
symbol.
– Eg: Customer buys goods is a relationship between
two entities : customer and goods.
– All relations have three components:
• Name - relationship name (goods bought)
• Degree - number of attributes associated with the relation
GOODS GOODS
CUSTOMER
BOUGHT
• ONE-TO-MANY Relationship(1:M)
child1
Parent
child2
child3
• MANY-TO-MANY Relationship:
customer1
Television
customer2
customer3
customer4
DVD Player
customer5
customer6