Logical Design Flashcards
3 main phases of database design
Conceptual, Logical, Physical
Conceptual database design
The process of constructing a model of the data used in an organisation independent of all physical considerations
What is done in a conceptual database design?
Building an ER model identifying entities, relationships, attributes etc
Logical database design
Process of constructing a model of data used in an organisation based on a specific data model but independent of a particular DBMS and other physical considerations
What is done in a logical database design?
ER model is mapped to a set of relational tables
How are relationships represented in tables?
Copying the primary key of the parent into the child where it becomes a foreign key
How is cardinality determined?
Looking at the maximum values in the multiplicity ranges on either side of the relationship
Left side of the multiplicity range
Participation
Right side of the multiplicity range
Cardinality
Why do we use the participation?
To merge the entities into a single tables or create separate tables related by a foreign key
Mandatory participation on both sides of a 1:1 relationship (1:1, 1:1)
Entities are combined into a single table. Of the original PKs, one becomes the PK for that table and the other becomes the alternate key
Mandatory participation of one side of a 1:1 relationship (1:1, 0:1)
Copy the PK and make it the foreign key in the other table
Optional participation on both sides of a 1:1 relationship (0:1, 0:1)
Add the PK and make is the FK
1:* binary relationship
Copy PK and attributes of relationships on the one side table and paste to the many side table