AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Fields and records

Week 16 · Unit 7: Be a data boss · 3 lessons
1

Fields, records and data items

Computing 4: Unit 7, pp. 90–103
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.

NameSpeciesDate bornWeight (kg)Plant eater
Pippenguin12/03/20196No
Tolagiraffe21/08/2016800Yes
Moeotter05/11/20209No
Zurizebra30/01/2018350Yes
Worked examples
ABCDE
1NameSpeciesDate bornWeight (kg)Plant eater
2Pippenguin12/03/20196No
3Tolagiraffe21/08/2016800Yes
4Moeotter05/11/20209No
5Zurizebra30/01/2018350Yes
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 countHow manyHow we count
fields5the columns: Name, Species, Date born, Weight, Plant eater
records4the rows for Pip, Tola, Moe and Zuri
data items204 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.
RouteLeavesSeats leftLate
308:1512No
708:304Yes
908:4520No
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?
PlantHeight (cm)Flowers
Bean45Yes
Sunflower120Yes
Lettuce12No
Pumpkin30Yes
2
How many fields, records and data items does this library table have?
TitlePagesBorrowed
Space Cats64Yes
River Journey120No
The Clock Tower88Yes
Puzzle Planet40No
Big Waves72No
3
Choose record, field or data item. a) one column, b) one row, c) one cell.
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?