Database Flashcards
What is a colum
A column is a field that has a single piece of data stored about an entity
What is a row
A row is a record that is a complete set of data (fields) about an individual entity
What is a table
Table or file is all of the known individual entities of the entity type
What is a key field
It uniquely identifies a record / individual entity’s
Forms relationships
What is a primary key
It’s a unique identifier for each individual record
What is a foreign key
This is a primary key from another table in order to form relationships
What is a flat file database
One single table where all the data is recorded for every transaction
What are the problems with a Flat File Database
1: Unnecessary repetition of data
A) waste of resources e.g hardware space
B) take longer to complete: paying staff
2: Data inconsistency - The same piece of data has different values within the database
A) incorrect data
B) lose records/ error in processing
What is a Relational Database
Each table stores data about one entity and are limited together through relationships which are formed by primary and foreign keys
Advantages of a Relational Database
1: No data redundancy: unnecessary repetition of data
- each entities data is written once in the relevant table
- Use key field to refer to it
2: Improved data consistency: each piece of data is the same throughout entire database
What is a composite key
Primary key that consists of more than 1 field. Some or all of those field may be primary keys in another table
What is an attribute
It is a single piece of data for an entity e.g field name ‘member id’
What is an entity?
It is an object which information is stored e.g student
What is the Logical Data Model
It is in the design stage
It identifies the entities and the relationships between them using keys
It identifies attributes
It doesn’t describe the physical structure
What is the Physical Data Model
It is described from the logical data model
Produced during implementation stage
It creates the table structures such as
-Column Names
-Data type of each field
- Validation rules
The physical implementation differs depending on the actual database management system used