1 What Is A Database
1 What Is A Database
Databases
What is a Database?
What is and isn’t a
database file?
Database Not a Database
Database:
An organised / structured set of data.
What is a Database?
Learning Objective Success Criteria
Vs
Computerised Database Paper –Based Database
E-mail address
Delivery Address
Previous Orders
Finished? What information do you think is the most important for Amazon to know?
Amazon
Billing Address
Name
Card Details Phone Number
E-mail address
Delivery Address
Previous Orders
These are called FIELDs in a database.
They are one piece of information about the
customer
Amazon
This is a record...
Define a record
Difference between Flat File and
Relational
There are 2 types of Databases:
Flat File Database
• One big table
Table
Fields
Relational Database
• Many tables linked together
Table Table Table
Fields Fields Fields
Vets Flat File Database
Field Name Data Type
Customer_ID AutoNumber
Title Text Take a database that a
Surname Text
vet might use.
Street Text
Town Text
Every time the pet has
County Text
Phone_Number Text an appointment all of
Pets_Name Text this information needs
Type Text to be typed in.
DOB Date/Time
Medical_Conditions Text
Date_of_Appointment Date/Time
Time_of_Appointment Date/Time
Symptoms Text
Treatment Text
Vets Flat File Database
Field Name Data Type
Customer_ID AutoNumber
Title Text What might be the
Surname Text
problems with this?
Street Text
All the information isn’t
Town Text
needed every time!
County Text
Duplicating data held in
Phone_Number Text
Pets_Name Text
the database
Type Text
Takes too much time!
DOB Date/Time Can make mistakes
Medical_Conditions Text (spell the pets name
Date_of_Appointment Date/Time wrong on one occasion)
Time_of_Appointment Date/Time
Symptoms Text
Treatment Text
Vets Flat File Database
Field Name Data Type
Customer_ID AutoNumber
Title Text How can we solve this
Surname Text
issue?
Street Text Are there any other ways we
Town Text can organise this data?
County Text
Phone_Number Text Hint: In our example on the left,
Pets_Name Text there is data about:
Type Text the owner
Customer Table
Customer_ID
Appointment Table
Title
Appointment_ID
Surname
Customer_ID Pet Table
Street
Pet_ID Pet_ID
Town
Date_of_Appointment Pets_Name
County
Time_of_Appointment Type
Phone_Number
Symptoms DOB
Treatment Medical_Conditions
This document is a revision tool for you for your assessment at the
end.
Relational databases are better than flat file databases because they use
only one table.
Mistakes are made all the time in relational databases as you have to
type in the data again and again.