relational database model Flashcards
key characteristics of relational model
-views data more logically than physically
- conceptual model
- data independent
- structure independent
What are keys?
Keys consist of one or more attributes that determine other attributes
full functional dependence
when entire collection of attributes in the determinant is necessary for the relationship.
determinant and dependent
determinant –> dependent
composite key
key which is composed of more than one attribute
superkey
A key that uniquely identifies any row in a table
candidate key
A minimal superkey. It is a superkey without any unnecessary attributes.
primary key
A candidate key. (minimal superkey). Which is chose to the primary key of a table, to uniquely identify rows.
Entity integrity
Each row in the table has its own identity
Foreign key
A primary key of one table placed into another table to create a common attribute.
referential integrity
every reference to an entity by another entity is valid.