Professional Documents
Culture Documents
Databases
Databases
©www.teach-ict.com
What is a database?
Surname: James
First name: Samantha
Surname: Brown
Date of Birth: 20.12.89
First name:
Surname: David
Lastler
Address: 16 Poppy Close
Date
Firstofname:
Birth: 20.12.89
David
Town: Southam
Address:
Date of Birth: Surname:1620.12.89 Whitefield
Poppy Close
County: Warwickshire
Address: First name:
Town: Southam Nina
16 Poppy Close
County:
Town: Date of Birth:
Southam 21.02.76
Warwickshire
County: Address: Warwickshire
16 Poppy Close
Town: Southam
County: Warwickshire
©www.teach-ict.com
Flat files
A flat file is a database held in a single file.
A spreadsheet can be used as a flat file database.
Record
Field
©www.teach-ict.com
File
Flat files - Uses
Flat files are useful for:
-Lists of contact names and addresses
-Lists of student grades
-Details of a video collection
©www.teach-ict.com
Redundant data
©www.teach-ict.com
Errors on input
Typographical errors occur when data is
entered needlessly.
©www.teach-ict.com
Problems with updating data
If Miss Smith gets married and changes her
name, every record would have to be
updated.
©www.teach-ict.com
Overcoming problems with Flat files
©www.teach-ict.com
Using multiple tables
The student data could be moved into a
separate table as follows:
©www.teach-ict.com
Using multiple tables
The course data could be moved into a
separate table as follows
115 Chemistry
119 Chemistry
©www.teach-ict.com
Using multiple tables
The subject information could be moved into
a separate table as follows
©www.teach-ict.com
Using multiple tables
The lecturer information could be moved into
a separate table as follows:
Lecture Lecturer Date
r ID Name employed
1 Meaner 03/11/199
5
2 Maynard 01/02/200
2
3 Noakes 09/10/199
9
4 Smith 14/12/200
2
002 1 15
003 2 14
004 3 14
005 3 16
006 4 15
007 4 16
©www.teach-ict.com
Problems solved
©www.teach-ict.com
Flat file information storage and retrieval systems
©www.teach-ict.com