Determinant (computer science)
A determinant is a relational design theory term that deals with the conceptual design of the schemas of relational databases . The determinant describes the dependency between attributes of a relation . It defines which attribute sets determine the value of the other attributes.
definition
One or more attributes of a relational schema act as determinants if other attributes of the relational schema functionally depend on them ; so if and in each case a set of attributes of a relation schema , then is a determinant of when of functionally dependent (in characters ). A determinant is a condition that restricts the possible characteristics of a database schema, because if applies, then only such characteristics of are permitted for which the following applies:
- If two tuples have the same values for all attributes in , then the values of all attributes in both tuples must also match.
Determinants and keys
If determinant is thus within the relation all other attribute values by be determined, it means Super Key from . Furthermore, if
- is a determinant of and
- is minimal
(in other words: is functionally dependent on, but not on a real subset of ), then is a key candidate or candidate keys , one of which can be selected as the primary key for . The scheme is then fully functionally dependent on .
literature
- Alfons Kemper, André Eickler: Database systems. An introduction. Oldenbourg, Munich 2004, ISBN 3-486-27392-2 , page 163, 165f