![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Database Attributes Continued... An attribute where every value is unique. e.g. student number uniquely identifies a particular student thus it can be used to index all the tuples in the table. Each relation has a key (may require more than one field) thus there are no duplicates in a relation. Null values are forbidden in the primary key. Referential Constraint or foreign key The information in one relation (Marks) is given meaning and completeness through reference to the primary key of another relation (student) Also to the relation subject through the primary key of the subject relation. Constraint - the references are significant because values in the relation Marks are equal to values present in the relation Student Marks relation
Page updated August 25, 2004 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||