SECTION 01 / 15

From cards to tables: rows, columns and IDs

2 min read
On this page 2 headings

A table stores the same information as the cards in a more regular shape. One ordinary card becomes one row. Each field becomes a column. You already know these records from Weeks 1 and 2; only their arrangement is changing.

Bhuvanesh’s card becomes one table row. A column tells us which field to read.
Bhuvanesh’s card becomes one table row. A column tells us which field to read.
REAL COURSE DATA · FOLLOW THE PROCEDURE

Turn score cards into table rows

Read the current record, check the explanation, and watch the variables. Use Back to revisit any step.

Ready

CURRENT RECORD

Ready to begin

No records have been processed. Start with Next step.

What we remember

Processed
0

Start at the first step. Watch the current row and the values we remember.

Find a value using a record and a field

CardNoNameCityTownMathematicsPhysicsChemistryTotal
0BhuvaneshErode686478210
1HarishSalem624591198
2ShashankChennai575477188

To find Harish’s Physics mark, locate his row using CardNo 1, then read the Physics column: 45. CardNo is an identifier. Sorting the rows changes a row’s position, but it must not change the identifier or the values belonging to that student.

Word cards work in the same way

REAL COURSE DATA · FOLLOW THE PROCEDURE

Turn word cards into table rows

Read the current record, check the explanation, and watch the variables. Use Back to revisit any step.

Ready

CURRENT RECORD

Ready to begin

No records have been processed. Start with Next step.

What we remember

Processed
0

Start at the first step. Watch the current row and the values we remember.

The word table has SerialNumber, Word, PartOfSpeech and LetterCount. SerialNumber 12 is considered, a Verb with LetterCount 10. Two occurrences of Monday are two rows, even though their Word values match. Keep SerialNumber when order matters.

The score table has 9 fields. Some lesson tables show only the columns needed for that example. A smaller display does not remove the other fields from the dataset.

Try it yourself

Is a column one student or one attribute?

Show explained answer

One attribute, such as Mathematics. A row describes one student.

Try it yourself

Does sorting make CardNo 0 become CardNo 1?

Show explained answer

No. Sorting changes position, not identity.

Try it yourself

Why are two Monday cards separate rows?

Show explained answer

They are separate occurrences at different positions in the paragraph.

Try it yourself

Which field tells you the length of considered?

Show explained answer

LetterCount, which is 10. SerialNumber 12 is its position identifier.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑