Chapter 2 Flashcards
1
Q
What’s the purpose of creating an ER diagram?
A
- To design the conceptual model of the database.
2
Q
What is an entity in the ER diagram?
A
- Real world object distinguishable from other objects. An entity is described using a set of attributes
3
Q
What’s an entity set?
A
- A collection of similar entities. ie. All employees
- All entities in the entity set have the same attributes
4
Q
What is the purpose of a relationship?
A
- It provides an association between two or more entities
5
Q
What are the 4 types of relationships?
A
- One to one
- One to many
- Many to one
- Many to many
6
Q
What is a weak entity?
A
- It can only be identified by considering the primary key of another owner entity
- Owner entity set and weak entity set must participate in a one to many relationship set
- Weak entity must have total participation in this identifying relationship set.
7
Q
Describe how the ISA hierarchy works and what is its purpose?
A
- Similar to inheritance in object oriented languages. Attributes of parent are inherited.