What is a ISA relationship?
I Also known as generalisation/specialisation.
When an entity type contains certain entities that have special properties not shared by all entities, this suggests two entity types should be created with an ISA relationship type between them.
I E.g. An Employee ISA Person and a Student ISA Person I If Employee ISA Person then Employee inherits all the attributes of Person.
What is a composite key?
composite keys are keys having more than one attribute, such as {Department, University} and {Name, Address}
What is meant by a cyclic relationship type, including the part played by roles in the relationship type?
What is The Entity Relationship Model?
An example of a conceptual (high-level) data model
I Useful for design before moving to a lower level
model (e.g. relational)
What are alternatives to ERD?
UML (Unified Modelling Language) and I ODL (Object Description Language)
What are the main parts of ERD
Structural part
Integrity constraints
What are the main advantages of the ERD?
The diagrams (ERDs) associated with entity-relationship models
What is an entity?
An entity is a “thing” that exists and can be uniquely
identified, e.g., an individual person.
What are entity types?
What are attributes?
What is the Domain?
The domain of an attribute of an entity type is the set of
constant values associated with that attribute.
What is a relationship type?
A relationship type is an association between two or more
entity types.
Relationship types are represented in an ERD by diamond shapes, with lines to each of the rectangles representing entity types involved in the association
What are Relationships?
A relationship is an instance of a relationship type, i.e., it is the set of associations between the entities comprising the entity types associated by the relationship type.
Which types of Multiplicity / Cardinality exist?
Which Participation Constraints exist?
optional relationship
I e.g., an Employee may or may not be assigned to a
Department
I Participation of entity (e.g., Employee) in relationship
is said to be partial
I This is the default for relationships in our notation
I (Sometimes indicated by cardinality constraint of 0..*)
I mandatory relationship
I e.g., every Course must be Taught by at least one
Lecturer
I Participation of entity (e.g., Course) in relationship
said to be total
I Indicated by double lines in our notation
I (Sometimes indicated by cardinality constraint of 1..*)
What is a weak entity type?
Definition. A Weak Entity Type is an entity type that does
not have sufficient attributes to form a primary key.
I The existence of a weak entity depends on the
existence of an identifying or owner entity type.
I The relationship between them is called an
identifying (ID) relationship.
I The weak entity type must have a discriminator (one
or more attributes) for distinguishing among its
entities.
How does one construct an ERD?