ch4 Flashcards
logical database design and the relational model
relation
named 2D table of data. consists of the named columns(attributes)
primary key
unique ID for a row. underline it. AKA identifier
composite key
primary key that is composite
foreign key
primary key of one table stored in another table to establish relationship. dashed underline.
schema
overall logical structure of the database
difference between table and relation
relations pretty much cannot have repeats
integrity constraints
rules to make sure data is accurate and good
domain
set of values that may be assigned to attribute
entity integrity rule
make sure primary key is valid and unique, not null
null
absence of a value
referential integrity constraint
check if foreign keys are good
well-structured relation
minimal redundancy, allows modification and deletion with minimal headaches
anomaly
inconstancy that happens when you try to update a table with redundant data. three types: insertion, deletion, and modification anomalies
transforming EER into relations steps
1-map regular entities 2-map weak entities 3-map binary relationships 4-map associative entities 5-map unary relationships 6-map ternary (and n-ary) relationships 7-map supetype/subtype relationships
descriptors
non key attributes