DBMS Chapter3
DBMS Chapter3
DBMS Chapter3
Attribute Domain: Are the values that can be used to specify each
tuples values for that specific column. Also known as an “domain.” It
is the set of allowable values for an attribute.
In data modeling, the construct used to organize and describe an
attribute’s set of possible values.
Eg: Student GPA can range from 1-4
Determination
⁃ State in which knowing the value of one attribute makes it
possible to determine the value of another
⁃ Establishes the role of a key
⁃ Based on the relationships among the attributes
Functional dependence: value of one or more attributes determines
the value of one or more other attributes. A -> B
Determinant: attribute whose value determines another
Dependent: attribute whose value is determined by the other
attribute
Superkey: key that can uniquely identify any row in the table
Note: Not all keys are superkeys (e.g., STU _HRS → STU_CLASS)
Candidate key: minimal superkey. that is, a key that does not contain
a subset of attributes that is itself a superkey. See key. Dropping one
or more attributes from the candidate key should retain it as a
superkey.
2. Null: absence of any data value. Note that a null is not a blank.
⁃ Unknown attribute value, known but missing attribute value, or
inapplicable condition
5. Secondary key: key used strictly for data retrieval purposes that
does not require a functional dependency.
Integrity Rules:
5. Difference - Yields all rows in one table that are not found in
the other table. Tables must be union-compatible to yield valid
results.
AuB=BuA
A intersection B = B intersection A
But A – B Not equal to B -A
Data Dictionary
⁃ Description of all tables in the database created by the user
and designer
⁃ Contains at least all of the attribute names and
characteristics for each table.
System catalog - System data dictionary that describes all objects
within the database, including data about table names, table's creator
and creation date, number of columns in each table, data type
corresponding to each column, index filenames, index creators,
authorized users, and access privileges.