information & communications technology an introduction to databases

11
STANDARD GRADE STANDARD GRADE ADMINISTRATION ADMINISTRATION Information & Communications Technology An Introduction to Databases

Upload: sharlene-sanders

Post on 03-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Information & Communications Technology An Introduction to Databases

STANDARD GRADE STANDARD GRADE ADMINISTRATIONADMINISTRATION

Information & Communications

Technology

An Introduction to Databases

Page 2: Information & Communications Technology An Introduction to Databases

What is a Database?

An information centre

Computerised filing system

A collection of related information

Page 3: Information & Communications Technology An Introduction to Databases

What is a Database?

Pupil Records

File

Record 1

Record 2

Record 3

Page 4: Information & Communications Technology An Introduction to Databases

What is a Record?

Forename

Surname

Date of BirthEmployee Number

ROBBIE

WILLIAMS

23/08/1973

1985

Fields

Page 5: Information & Communications Technology An Introduction to Databases

What type of Field?

Name

Date of Birth

Salary

Employee Number

Text

Date

Currency

Number

Page 6: Information & Communications Technology An Introduction to Databases

First Name Second Name Date of Birth Staff Number Yearly Salary

Derek Longmuir 11/08/1970 1 £25,000.00

Lisa Smith 21/03/1975 2 £28,500.00

Martin Cawston 13/06/1979 3 £19,750.00

Jillian Thomson 17/05/1981 4 £21,200.00

In this example, there are 5 fields.

There are 4 records in this one file.

Record 1

Record 2

Record 3

Record 4

Page 7: Information & Communications Technology An Introduction to Databases

Field Types

First Name Second Name Date of Birth Staff Number Yearly Salary

Derek Longmuir 11/08/1970 1 £25,000.00

Lisa Smith 21/03/1975 2 £28,500.00

Martin Cawston 13/06/1979 3 £19,750.00

Jillian Thomson 17/05/1981 4 £21,200.00

text text date number currency

Page 8: Information & Communications Technology An Introduction to Databases

Sorting Records

First Name Second Name Date of Birth Staff Number Yearly Salary

Derek Longmuir 11/08/1970 1 £25,000.00

Lisa Smith 21/03/1975 2 £28,500.00

Martin Cawston 13/06/1979 3 £19,750.00

Jillian Thomson 17/05/1981 4 £21,200.00

It might be a good idea to sort the records in the database in order of what?

Page 9: Information & Communications Technology An Introduction to Databases

Sorting Records

First Name Second Name Date of Birth Staff Number Yearly Salary

Martin Cawston 13/06/1979 3 £19,750.00

Derek Longmuir 11/08/1970 1 £25,000.00

Lisa Smith 21/03/1975 2 £28,500.00

Jillian Thomson 17/05/1981 4 £21,200.00

Here, the records have been sorted in alphabetical order of Second Name.

How else could they be sorted?

Page 10: Information & Communications Technology An Introduction to Databases

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???

Page 11: Information & Communications Technology An Introduction to Databases

Searching Records

First Name Second Name Date of Birth Staff Number Yearly Salary

Derek Longmuir 11/08/1970 1 £25,000.00

Lisa Smith 21/03/1975 2 £28,500.00

•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?