Chapter 4: Logical Database Design and the Relational Model Flashcards
(79 cards)
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