Skip to content
Exit presentation

Data & Patterns II

One row per thing, one column per fact

Write down a fruit stall's week on paper. The facts get mixed up.

Empty table. Four columns: Fruit, Day, Crates sold, Price.
Step 1 of 4
  1. Empty table. Four columns: Fruit, Day, Crates sold, Price.
  2. One record fills a row: Mango, Monday, 9, 240.
  3. A second record fills the next row: Guava, Monday, 4, 120.
  4. Read across: one record. Read down: one field.

A row is one record, all the facts about one thing. A column is one field, one kind of fact. A cell is the square where a row and a column meet.

A table is rows and columns together. A database often keeps its data in tables like this. In a table, each fact has one place, its cell.

Three records off a fruit stall's week, four fields wide
FruitDayCrates soldPrice (₹)
MangoMonday9240
GuavaMonday4120
MangoTuesday7240

A field holds one kind of fact. "Day" holds days only. "Mango, Monday" in one cell mixes two facts.

Is the shaded part a record or a field?

Loading lab…

Jump to lesson

This track

  1. 0 Start here
  2. 1 One switch, two messages
  3. 2 Add a switch, double the patterns
  4. 3 Give a pattern a meaning
  5. 4 One row per thing, one column per fact
  6. 5 Sorting and filtering
  7. 6 The big picture
  8. 7 Track quiz

Other tracks