ER Modeling Flashcards
Miniworld
part of the real world that we are interested in modeling
What is the importance of conceptual design?
- Fundamental
- Involves users
- Provides good documentation for the Db
- Independent of the DBMS
What is the Entity-Relationship (ER) model?
Notion that a database can be modelled as a collection of entity classes and relationships among them
What is the goal of the ER model?
Develop an ER schema or ER diagram
Entity
Data object that exists and is distinguishable from other objects
What can be considered entities?
An object that physically exists, abstract or organizational entity, or an event
Entity type
description of the attributes that a set of entities has in common
Entity set
A collection of of entities of the same type
Entity class
combination of entity set + entity type
Attribute
Property of an entity
All members of an entity class will have the same ______
Attributes
But they may have different attribute values
(e.g. all customers will have a name but the name will likely be different)
How is an entity class represented?
A rectangle
How is an attribute represented?
labelled oval connected to a entity class
How are entities distinguished from one another?
Each entity will have a unique combination of attribute values
Candidate Identifier
a set of one or more attributes whose values uniquely determine each entity.
Can you have more than one candidate identifier?
Yes there can be several
Ex: Name, DOB of customers, customerid of customers
Can you have more than one primary identifier?
No. One candidate identifier is selected to be the primary identifier
What conditions must be met for a primary identifier?
- Unique
- Mandatory
- Time invariant
How are primary identifier represented?
Labelled oval with an underline
How are null values represented? When are they used?
@ symbol
For unknown or inapplicable values
How are multi-valued attributes represented? What is an example?
Double oval
Customer could have more than 1 phone number
What is a composite attribute? What is the opposite of a composite attribute?
A composite attribute is comprised of multiple values to describe it (e.g. address has street, city, zip etc.)
The opposite of a composite is a simple