Ch 10 Flashcards
(21 cards)
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)
What’s another name for entity integrity?
referential integrity. It ensures that you are creating a relationship between two entities
What is the first table to populate in a database?
the table with no foreign keys
when is it advantageous to split database?
when there are multiple users so each can have separate front end to access same data and when data from other databases needed as linked tables can come from any database.
What are the different query operations?
project - take one or more columns of original table
select - take one or more rows of original table
join - combine all columns of input tables (tables must have one field in common, directly related)
set - rows come from one or other of input tables
What is it called to join operations via a single table?
self join
What does a form allow you to do?
view one record at a time and mix and match fields from tables and queries so that you can enter/update dat