Information & Communications Technology An Introduction to Databases
What is a Database? An information centre Computerised filing system A collection of related information
What is a Database? Pupil Records File Record 1 Record 2 Record 3
What is a Record? Forename Surname Date of Birth Employee Number ROBBIE WILLIAMS 23/08/ Fields
What type of Field? Name Date of Birth Salary Employee Number Text Date Currency Number
First NameSecond NameDate of BirthStaff NumberYearly Salary DerekLongmuir11/08/19701£25, LisaSmith21/03/19752£28, MartinCawston13/06/19793£19, JillianThomson17/05/19814£21, In this example, there are 5 fields. There are 4 records in this one file. Record 1 Record 2 Record 3 Record 4
Field Types First NameSecond NameDate of BirthStaff NumberYearly Salary DerekLongmuir11/08/19701£25, LisaSmith21/03/19752£28, MartinCawston13/06/19793£19, JillianThomson17/05/19814£21, text datenumbercurrency
Sorting Records First NameSecond NameDate of BirthStaff NumberYearly Salary DerekLongmuir11/08/19701£25, LisaSmith21/03/19752£28, MartinCawston13/06/19793£19, JillianThomson17/05/19814£21, It might be a good idea to sort the records in the database in order of what?
Sorting Records First NameSecond NameDate of BirthStaff NumberYearly Salary MartinCawston13/06/19793£19, DerekLongmuir11/08/19701£25, LisaSmith21/03/19752£28, JillianThomson17/05/19814£21, Here, the records have been sorted in alphabetical order of Second Name. How else could they be sorted?
Searching Records Databases hold lots of information. Sometimes it is good to search or query a database to find certain pieces of information. For example, how many staff members earn £25,000 or over???
Searching Records First NameSecond NameDate of BirthStaff NumberYearly Salary DerekLongmuir11/08/19701£25, LisaSmith21/03/19752£28, Here are the records which have been searched or queried for. They have been sorted into alphabetical order of Second Name. Can you think of examples where this might be handy?