Database Revision Flashcards
A compound key is an example of a primary key.
Describe what is meant by a compound key in a relational database
A key comprising two or more attributes which are foreign/primary
keys from other tables
What is an entity occurence
A specific example of an entity is called an instance or entity occurrence. For example:
John Smith, Mary McLeod and Omar Shaheed are all entity occurrences found in the Studententity
What is an entity
An entity is a person, place, thing.
E.g. in a school, possible entities might be Student, Teacher, Class and Subject.
What is an attribute
An entity is described by its attributes. Each attribute is a characteristic of the entity.
For example, attributes of the Student entity would include: studentID firstname surname dateOfBirth.
What is a primary key
A combination of attributes that uniquely identifies one, and only one, entity occurrence .
What is a foreign key
An attribute in one table that uniquely identifies a row of another table.