☰ Year plan · Communication Technology

Databases, formulas and a vote table

Week 28 · Theme 4, Lesson 5 Creating a Database · 3 lessons
1

What is a database? Fields and records

ICT P6 Term 2, Theme 4: pp. 58–61
GoalExplain what a database is, and tell fields from records, using invented people only.
New words
database · organised information stored in a computer so that it is easy to study and changefield · one kind of information, shown as a column headingrecord · all the information about one person or thing, shown as a rowID number · a number that belongs to one record only
Explanation

A database is organised information stored in a computer, so that it is easy to study and change. It can hold facts about people, places or objects. A teacher keeps a secure list of pupils; a company keeps a list of its workers. A spreadsheet can be used as a small database. Look at it as a table. Each column has a heading, and each heading is a field, such as ‘Class’ or ‘Sport’. Each row is a record, which holds everything about one person or thing. Every record needs an ID number that belongs to that record only, so that two records are never mixed up, even if two people have the same name. A new column, which is a new field, can be added at any time. Data about real people must be protected, so in our lessons we use only invented people, such as ‘Student 1’, and made-up ID numbers. Never write real names, numbers or classes.

ABC
1IDClassSport
21016AFootball
31026ASwimming
41036BFootball
51046BTennis
Worked examples
ABC
1IDClassSport
21016AFootball
31026ASwimming
41036BFootball
51046BTennis
Field and record. In this table the field ‘Class’ is the column B. The record for ID 103 is row 4: ID 103, class 6B, sport Football. One column, one kind of information; one row, one pupil.
IDNameClass
105Student 46A
106Student 46C
Why an ID. Two invented pupils are both called ‘Student 4’. Their IDs 105 and 106 are different, so the computer never mixes them up.
IDJobShift
W1drivermorning
W2cleanerevening
W3guardnight
A company list (invented). The fields are ID, Job and Shift. Each worker is one record. A new field such as ‘Room’ can be added later as a new column.
Class activity

Build a tiny database. On paper draw a table with the fields ID, Class and Favourite fruit. Add four records for invented pupils (‘Student 1’ to ‘Student 4’) with made-up ID numbers. Circle one field and underline one record. Then add a new field, ‘Favourite colour’, and fill it in. Remember: never use real names, numbers or classes.

Practice
1
What is a field?
2
What is a record?
3
Why does each record have its own ID number?
4
Why do we use only invented people in lessons?