Computer science · lesson 1 of 4
Tables, rows and keys
A relation represented as rows with named columns.
University8 practice questionsNotes + worked examples
Learn the ideas
Prerequisites: Basic computing and simple data tables.
Table
A relation represented as rows with named columns.
Primary key
A constraint identifying each row uniquely.
Foreign key
A value constrained to reference a key in another relation.
Schema
The defined structure, fields and constraints of stored data.
Worked examples
Which term best matches this description: A relation represented as rows with named columns.
Table is the matching concept in this lesson.
Table
Which term best matches this description: A constraint identifying each row uniquely.
Primary key is the matching concept in this lesson.
Primary key
Check your understanding
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.