3.2.2 Database Modelling Flashcards
Conceptual ER
Investigates data needs of the organisation- what data do they need to store?
how are the data elements to be grouped- what will the entities be?
includes the entities AND the relationship between them.
Logical
includes entities and their relationships
identifies all attributes, plus primary and foreign keys
normalisation occurs at this stage
Steps for making logical data model
specify primary keys for all entities
find relationships between different entities
find all attributes for each entity
resolve many to many relationships
normalisation
Differences between conceptual and logical
no primary key is present
all attributes are specified within an entity
relationships between entities are specifies using primary and foreign keys. in a conceptual data model, the relationships simply stated, not specified, so we know that two entities are related, but we do not specify what attributes are used for this relationship.
Physical
uses the logical model as a basis
converts all entities and attributes into tables with columns
specifies the data type for each attribute
the physical model produced could be different for different database packages
Producing ER diagram
look at notes