GoalName the parts of a data table and count its fields and records.
New words
data table · a collection of data about one topic, arranged in rows and columnsfield · a column in a data table: it holds one kind of factrecord · a row in a data table: all the facts about one person or thingdata item · one single fact in one cell of the table
Explanation
A data table keeps facts about one topic, such as the animals in a zoo. It is arranged in rows and columns. Each column is a field. A field holds one kind of fact, such as the weight of an animal, and its name is written at the top. Each row is a record. A record holds all the facts about one animal. One fact in one cell is a data item. To count the records, count the rows under the field names. To count the fields, count the columns. A database can have one data table or several.
Name
Species
Date born
Weight (kg)
Plant eater
Pip
penguin
12/03/2019
6
No
Tola
giraffe
21/08/2016
800
Yes
Moe
otter
05/11/2020
9
No
Zuri
zebra
30/01/2018
350
Yes
Worked examples
A
B
C
D
E
1
Name
Species
Date born
Weight (kg)
Plant eater
2
Pip
penguin
12/03/2019
6
No
3
Tola
giraffe
21/08/2016
800
Yes
4
Moe
otter
05/11/2020
9
No
5
Zuri
zebra
30/01/2018
350
Yes
The highlighted cell in this zoo table is one data item. It is in the column Date born and in the row for Tola. It says that Tola the giraffe was born on 21/08/2016.
What we count
How many
How we count
fields
5
the columns: Name, Species, Date born, Weight, Plant eater
records
4
the rows for Pip, Tola, Moe and Zuri
data items
20
4 rows × 5 columns
The zoo table has 5 fields and 4 records. The field names at the top are not a record. Every record has one data item for every field, so there are 4 × 5 = 20 data items in all.
Route
Leaves
Seats left
Late
3
08:15
12
No
7
08:30
4
Yes
9
08:45
20
No
Many things can be put in a data table. This table has facts about bus trips. The row for route 7 is one record, and “Seats left” is one field.
Class activity
Toy database (with family): pick five toys or books at home. Draw a table on paper with four fields: Name, Colour, Number of pieces or pages, and Used this week (Yes or No). Fill in one record for each toy or book. Count the fields, the records and the data items. Colour one record in red and one field in blue. Then add a sixth record. What do you have to write?
Practice
1
In the garden table, what is A the whole column called Plant, B the row for the sunflower, C the number 12?
Plant
Height (cm)
Flowers
Bean
45
Yes
Sunflower
120
Yes
Lettuce
12
No
Pumpkin
30
Yes
A is a field, B is a record and C is a data item.
2
How many fields, records and data items does this library table have?
Title
Pages
Borrowed
Space Cats
64
Yes
River Journey
120
No
The Clock Tower
88
Yes
Puzzle Planet
40
No
Big Waves
72
No
3 fields (Title, Pages, Borrowed), 5 records (one for each book) and 15 data items (5 × 3).
3
Choose record, field or data item. a) one column, b) one row, c) one cell.
a) field, b) record, c) data item.
4
Mint is 25 cm tall and has no flowers. You add it to the garden table. What do you add and how many data items does it have?
You add one new record (a new row) with 3 data items: Mint, 25 and No.