Chapter 4: Logical Database Design and the Relational Model Flashcards
The entity relationship diagram is a logical data model (T or F)
False
What is the objective of logical database design?
To transform the conceptual design into a logical database design that can be implemented via a chosen dbms
The relational model is based on mathematics (T or F)
True
What are the 3 components of a relational data model?
- Data structure
- Data manipulation
- Data integrity
A named two-dimensional table
of data
relation
is an attribute or a combination of attributes that
uniquely identifies each row in a relation
primary key
A primary key that consists of
more than one attribute
composite key
What is used to show relationships with relations?
Foreign keys
In the shorthand notation, what is used to identify foreign and primary keys?
PK: Solid underline
FK: Dashed underline
Properties of Relations: What are the properties of relations?
- Has a unique name
- rows and columns are atomic
- each row is unique
- each column is unique
- The sequence of columns are insignificant
- the sequence of rows is insignificant
a description of the overall logical structure of the database
Schema
What are the two common methods for expressing a schema
- short text statements
- graphical representation
Integrity Constraints: What are the three constraints found in relational data models?
- Domain Constraint
- Entity Integrity
- Referential Integrity
Integrity Constraints: is the set of values that may be assigned to an attribute
Domain Constraint
Integrity Constraints: is design to ensure that every relation has a primary key and that the data values are all valid
Entity Integrity
Integrity Constraints: In entity integrity, it ensures that all primary key attributes are?
Non-null
Integrity Constraints: A value that may be assigned to an attribute when no other value
applies or when the applicable
value is unknown.
Null
Integrity Constraints: A rule that states that either each
foreign key value must match
a primary key value in another
relation or the foreign key value
must be null.
referential integrity constraint
Integrity Constraints: In referential integrity, it is allowed to have a null foreign key if?
The relationship is optional
Well-Structured Relations: A relation that contains __ ___ and allows users
to __ ___ __ ___the
rows in a table without errors or
inconsistencies.
- minimal redundancy
- insert, modify, and delete
Well-Structured Relations: Redundancies may lead to?
Anomalies
Well-Structured Relations: An error or inconsistency that
may result when a user attempts
to update a table that contains
redundant data
anomaly
Well-Structured Relations: What are the three anomalies?
- Insertion
- Deletion
- Modification
Well-Structured Relations: Restrictions in composite primary keys when creating new tables are what anomaly?
Insertion Anomaly
Well-Structured Relations: When a removal of an attribute leads to a deletion of the whole instance
Deletion Anomaly
Well-Structured Relations: When updating needs to be done to every instance is what type of anomaly?
Modification Anomaly
Transforming EER Diagrams into Relations: aare entities that have an independent existence and generally represent real-world objects, such as persons and products. It is represented by what in a graphical representation?
Regular Entities. By a solid line box
Transforming EER Diagrams into Relations: are entities that cannot exist except with an identifying relationship with an owner (regular) entity type. It is identified in a graphical representation as?
Weak Entities. A double line box
Transforming EER Diagrams into Relations: are formed from many-to-many relationships between other entity types. It is identified in a graphical representation with?
Associative Entities. Rounded cornered box
Transforming EER Diagrams into Relations: Associative entities are also called?
Gerunds
Transforming EER Diagrams into Relations: What are the steps in creating relational data models?
- Map Regular Entities
- Map Weak Entities
- Map Binary Entities
- Map Associative Entities
- Map Unary Entities
- Map Ternary Relationships
- Map Supertype/Subtype Relationships