Define an entity
A single object, person, event or thing e.g customers, appointments, products about which data is to be recorded. An entity is represented with one or more database tables.
Define an attribute
A specific type of data representing a particular characteristic of each data record. Also known as a field or column.
Define a relational database
A database that stores records in two or more tables. Records in one table can refer to records in another table to avoid duplicating data.
Define a flat file
A database with a single table.
Define a primary key
An attribute that uniquely identifies every row of the table. If there is no natural attribute for a primary key, one should be introduced. The primary key is automatically indexed and cannot be blank.
Define a composite primary key
Sometimes two or even more attributes are needed to uniquely define a record. These attributes form a composite key.
Define a foreign key
A primary key of one table which appears in another table. By doing this relationships between the tables are formed.
Define a secondary key
A field, other than the primary key, which is indexed.
Define an index
A list of keys (or keywords), each of which identifies a unique record. Indices make it faster to find specific records and to sort records by the index field (the field used to identify each record).
Define a relationship
A relationship exists between two tables when one table has a foreign key that references the primary key of the other table.
What are the 3 relationship types?
One-to-one, one-to-many, many-to-many
Define a record
A row in a database table which contains data about one instance of an entity.
Define data integrity
The overall accuracy and completeness of data
Define referential integrity
A foreign key must refer to an existing primary key. Referential integrity is violated when the primary key to which a foreign key refers no longer exists. A measure of the consistency of the data in a database.
Define a query
A request for data or information from a database table or combination of tables.
Define data redundancy
This occurs in database systems when the same piece of data exists in multiple places.
Define normalisation
The process of structuring the data in a relational database according to formal rules, in order to avoid problems of data redundancy which leads to inconsistency and inaccuracy.
Define a field
A part of a record that holds data of a specific type about one characteristic of the subject of the record.
Define a table
A set of data items arranged using vertical columns (identifiable by name) and horizontal rows
What are pros of flat file databases?
What are cons of flat file databases?