Skip to content
IGCSE·Tuition
Computer Science · Lessons

Distinguish field, record and table

Exam questions use these three words as if they were obvious, and one swapped word loses the mark.

On this page
  1. How do the three parts fit together?
  2. Worked example
  3. The mistake to watch for
  4. Check yourself
  5. Where this leads next

A table holds all the data about one kind of thing. A record is one row: everything about a single item. A field is one column: one kind of fact, such as a name or a price.

These words open nearly every question in databases and query reasoning, so being exact with them saves marks later.

How do the three parts fit together?

Think of a school register on paper. The whole sheet is the table.

Each line for one student is a record. Each heading, such as “class” or “date”, is a field.

Here is the fictional Plants table used throughout this module.

PlantIDNameTypePriceStockIndoor
P01FernFoliage12.508TRUE
P02CactusSucculent6.0025TRUE
P03RoseFlowering15.000FALSE
P04MintHerb4.5040FALSE
P05OrchidFlowering28.003TRUE

Each field also has a data type: it decides what values the column may hold.

PlantID, Name and Type are text.

Price is real (decimals allowed). Stock is integer. Indoor is Boolean (TRUE or FALSE).

Worked example

Using the five rows above, answer these.

Step 1, count the fields. Read the header row: PlantID, Name, Type, Price, Stock, Indoor. That is 6 fields.

Step 2, count the records. Count the data rows, not the header: P01 to P05. That is 5 records.

Step 3, name one whole record. The Orchid record is P05, Orchid, Flowering, 28.00, 3, TRUE.

Step 4, name the data type of Stock. The values 8, 25, 0, 40, 3 are whole numbers, so Stock is integer.

Step 5, name the table. The table is Plants.

Final answer: 1 table, 6 fields, 5 records. Always state the header row separately, because it is not a record.

The mistake to watch for

A common slip is to say “the Price record” when the question means the Price field.

Mistaken answer: “Price is a record with values 12.50, 6.00, 15.00.”

The student described a column, which is a field, and used the word for a row.

The correction: a field runs down a column, a record runs across a row. A quick test is to ask “is this one item (record) or one kind of fact (field)?”

Check yourself

1. In the table above, how many fields would there be if a Colour column were added, and how many records?

Show answer

Fields: 6 + 1 = 7. Records stay at 5, because adding a column does not add a row.

2. Which data type suits the field Indoor, and why?

Show answer

Boolean, because every value is one of two states, TRUE or FALSE.

3. Is “Mint, Herb, 4.50” a field, a record or a table?

Show answer

It is part of a record (the P04 row), but not the whole record, as the other values are missing. Fields are the columns, such as Type.

Where this leads next

Next, see how to choose a suitable key so every record can be told apart. Then check yourself with the module practice set, and explore the read-only SQL practice lab if you want to see real tables.

If these terms still blur together when exam wording gets tricky, our teachers can help through online one-to-one Computer Science tuition.

Updated:

Your next step

If the vocabulary makes sense until a question mixes it with data types, a one-to-one teacher can build a quick habit of counting rows and columns correctly before anything else.

Paid one-hour trial at your assigned teacher’s confirmed rate, starting from RM80. Other fees, schedules and ongoing arrangements are confirmed directly with your teacher after the trial class.

Tuition is arranged with a parent or guardian. Send them this page on WhatsApp and they can enquire for you.

Parent or guardian? Enquire here

9,000+ students helped through our service