kandidatnøgler
Kandidatnøgler, or candidate keys, are a fundamental concept in relational database theory. A candidate key is a set of attributes in a relation (table) that uniquely identifies each tuple (row) within that relation. This means that for any two distinct rows in the table, the combination of values in the candidate key's attributes must be different.
Crucially, a candidate key must satisfy two properties: uniqueness and minimality. Uniqueness ensures that no two
A relation can have multiple candidate keys. Among these candidate keys, one is typically chosen as the
The concept of candidate keys is essential for ensuring data integrity and facilitating efficient data retrieval