Database concepts Flashcards
What is a flat file database?
A database, which consists of a single file. It might be a suitable structure to hold the names and addresses of all members of a sports club.
What is an entity?
A category of object,person,event or thing of interest to an organisation about, which data is to be recorded e.g. Employee, Film, Actor, Product, Recipe.
Each entity in the database system has attributes.
Format of entity description?
Entity (Attribute1, Attribute2…)
The entity description for a dentist would be:
Dentist (Title, First-name, Surname, Qualification)
What is an identifier?
An attribute which uniquely identifies the entity.
Each entity needs to have an identifier.
What is a primary key?
An identifier of an entity in a relational database e.g. a string ID or numeric.
Give an example of a primary key for dentist
Dentist (DentistID, Title, First-name,Surname,Qualification)
What is a secondary key?
An index of all the primary keys in the database, and whrere the record