Ch 10 Flashcards
What is a relational schema?
The computer’s view of the data
In a relational data model, what corresponds with column headings, data in columns, and rows?
attributes, attribute values, and entities
Every relation schema requires at least one key for the relation. – if true, relation exhibits what?
entity integrity
What is a dashed circle attribute?
derived attribute
For strong entity classes, what is the key of the it’s relational schema?
the primary key of the entity class
What is a double circled attribute?
multivalued attribute
For weak entity classes, what is the key of relation schema if
1: 1?
1: M?
key of owner class key of owner class + discriminator
For 1:1 relationship types, which class should be the recipient vs donor of foreign key?
the class with mandatory participation is the recipient
Why is it a bad idea to combine two tables into one?
nulls may result and artificial entity means a loss of meaning and clarity
What is a Data Dictionary?
single document which specifies relational schema plus all additional information
What are the 3 goals in developing a relational schema?
1) each attribute and schema has a simple meaning
2) null values are minimized
3) controlled redundancy
What is anomalous behavior?
change to one row of table cause problems somewhere else (where info should be the same)
What is functional dependency?
a strong connection between two or more attributes in a table
What are types of 1:1 relationships
"Is A" "Scare Resource Allocation" "Boss" "Marriage" "Matching reservations"
what steps are involved in initially creating a database?
Data Dictionary and relational schema diagram (normalized)