Exam 1-Chapter 3 Flashcards
Relational Model
View data logically rather than physically
Table
- Two-dimensional structure composed of rows and columns
- Structural an data independence
- Resembles a file conceptually
Entity Set
Contains group of related entity occurrences
Key
- One or more attributes that determine other attributes
- A key’s role is based on determination (if you know the value of attribute A, you can look up or determine the value of attribute B)
Functional Dependence
Attribute B is functionally dependent on the attribute A if each value in column A determines one and only one value in column B
Composite Key
Composed of more than one attribute (Combination of LNAME, FNAME, INIT, and PHONE are likely to be unique)
Ful Functional Dependence
Attribute B is functionally dependent on a composite key A, but not on any subset of A
Key Attribute
Any attribute that is part of a key
Superkey
Any key that uniquely identifies each row. A superkey functionally determines all of the entity’s attributers (STU_NUM)
Candidate Key
A superkey without unnecessary attributes (a minimal superkey; STU_NUM, STU_LNAME is a superkey but not a candidate key, STU_NUM ins a candidate key)
Nulls
No data entry; not permitted in primary key; should be avoided in other attributes; can represent different meaning, such as an unknown attribute value, a known but missing attribute value, and a “not applicable” condition
Flags
Designers use flags to avoid nulls. Flags indicate absence of some value
Controlled Redundancy
Makes the relational database work. Tables within the database share common attribues
Rational Schema
A textual representation of the database tables
Foreign Key
An attribute whose values match primary key values in the related table
Referential Integrity
Foreign key contains a value that refers to an existing valid tuple (row) in another relation