Database Systems Flashcards
Flat file database
Flat file database consists of a single table and contains files, records, fields and characters. Simple to create, easy to use, and inexpensive. Increased data redundancy and inconsistency
Relational database
Relational database is comprised of multiple entities, contains attributes and relationships. Reduced data redundancy, consistency, shared data centralised security. Takes time to set up.
Primary key
A primary key is a field that is unique to any given record. It is referred to as
a unique identifier that uniquely identifies records.
Foreign key
A foreign key is any field in table which is the primary key in another table
Databases
Databases are a persistent and organised store of data.
Database benefits
Makes processing more efficient. Reduces storage requirements by avoiding redundancy. Allows different users to only see relevant data.
Database Management System
A manipulation language to change and access data. Integrity to ensure efficiency and structure is not compromised. Additional security. An interface for other programs to access the data. Program/data independence – You can change the data without affecting the program and vice versa.
Entity Relationship Modelling
Entity relationship modelling entails taking a real world situation and representing it using an entity relationship diagram. There are 3 types of relationships: 1 to 1, 1 to many or many to 1 and many to many.
Data dictionary
A ‘data dictionary’ describes the structure and attributes of data ‘items’ to be
used within a database. A data dictionary includes the names and descriptions of the tables and the fields contained in each table.