03a - Basic Database Concepts Flashcards
Define a database.
Database is a large collection of data items and links between them. Structured in a way that allows it to be accessed by a number of different application programs.
Examples of databases that store information about people.
Bank, school, business, airlines
Define a table.
A flat file where data is organised into rows and columns.
Define a record.
A collection of data items which may be of different data types, all relating to the individual/object that the record describes. Represented by rows in tables.
Define a field.
A part of a record designed to hold a single data item of a specified data type. Represented by columns in a table.
Define a primary key.
A key that uniquely identifies an individual record in a table.
How does a primary key become a foreign key?
When the primary key from one table appears as a field in a second table. The primary key is known as a Foreign key and forms a relationship between the tables.
What is a composite key?
A key that consists of two or more fields.