GoalExplain what spreadsheets and databases do, and say when each one is the better choice.
New words
cell · one box in a spreadsheet, named by its column and row, such as B3database · a store of many records that can be searched quicklyrecord · all the data about one thing, stored in one rowfield · one kind of data in a record, stored in one column
Explanation
A spreadsheet is a grid of cells. Each cell has a name made from its column letter and its row number, such as B3. A cell can hold a label, a number or a formula, and the sheet works out the answers and draws charts. A database stores many records. Each record is about one thing, and it is split into fields, such as Object or Material. A database can search all its records for a match and make a report from the matches. Hospitals, shops and museums use databases because they have so much data. A spreadsheet is best for working out and charting numbers. A database is best for storing and searching a huge amount of data.
Object
Material
Age (years)
vase
clay
900
coin
silver
1200
bowl
clay
650
necklace
gold
2000
cup
clay
400
Worked examples
B5fx=SUM(B2:B4)
A
B
1
Item
Sold
2
rolls
40
3
loaves
25
4
cakes
15
5
Total
80
The spreadsheet above adds up a bakery’s sales. Cell B5 holds the formula =SUM(B2:B4), which adds the numbers in cells B2, B3 and B4. It shows 80.
The table at the top of this lesson is a small museum database. It has five records and three fields. If we search the field Material for the word clay, the database finds three records: the vase, the bowl and the cup. A report can list just those objects.
Many organisations use both tools. The data are kept in a database. When someone wants a chart, a part of the data is copied into a spreadsheet, which draws it.
Class activity
Paper database (no computer): make eight animal cards. On each one write the animal’s name, where it lives, how many legs it has and what it eats. Lay the cards out. Search: find all cards where the habitat is water. Search again: find all cards with exactly four legs. Sort the cards from fewest legs to most legs. Each card is a record, and each thing you wrote on it is a field. If you have a computer or tablet, type the cards into a spreadsheet, one record per row, and use its sort tool.
Practice
1
What number does cell B5 show?
B5fx=SUM(B2:B4)
A
B
1
Day
Visitors
2
Mon
120
3
Tue
95
4
Wed
110
5
Total
?
325, because 120 + 95 + 110 = 325.
2
Search the database for records where Legs is 4. Which records match, and how many are there?
Animal
Legs
Habitat
frog
4
pond
spider
8
garden
dog
4
house
fish
0
sea
hen
2
farm
cat
4
house
frog, dog and cat. There are 3 matching records.
3
This table lists children in a running club. What is ‘Age’, and what is the row ‘Malika, 11, Group B’?
Name
Age
Group
Diego
10
Group A
Malika
11
Group B
Kenji
10
Group B
‘Age’ is a field, which is one column. The row ‘Malika, 11, Group B’ is a record, which holds all the data about one child.
4
A sports club has 1 200 members and wants a list of every member who plays tennis. Which tool is better, a database or a paper list? Give one reason.
A database. It can search all 1 200 records in a second and print the list as a report. On paper it would take a long time and could contain mistakes.