Module 6 - Data Modeling Flashcards
Logical and Physical data models?
Logical: conceptual, doesn’t indicate how data is stored, created, or manipulated
Physical: shows how data will actually be stored in the database, created, and manipulated
What is an entity relationship diagram (ERD)?
A data model that shows the data relationship between entities.
What is an ERD entity?
A person, place, event, or thing in which data is collected
ERD Identifier Types
Can be independent or dependent from another entity. An identifier is a unique attribute/ID
ERD Relationships
Entities have parent-child relationships, the relationship goes both ways
ERD Cardinality
The number of instances of one entity that can be related to another
(1:1)
(1:M)
(M:N)
ERD Modality
0: Not required
|: There must be at least one instance of the entity
ERD Building Tips
Data stores of DFDs correspond to entities
Only include entities with more than one instance
Do not include entities associated with implementation of system
Entity name = noun
Entity relationship = verb
Attributes of the entity should be relevant to the system
You can turn an M:N into two 1:Ns by adding an intermediate entity