Computer science · University
Tables, rows and keys
A relation represented as rows with named columns.
Prerequisites
Basic computing and simple data tables.
Study notes
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
Which concept would you apply first in a situation where a value constrained to reference a key in another relation.
- Schema
- Table
- Primary key
- Foreign key
Name the concept described as: The defined structure, fields and constraints of stored data.
Which statement about Table is most accurate?
- The defined structure, fields and constraints of stored data.
- A value constrained to reference a key in another relation.
- A relation represented as rows with named columns.
- A constraint identifying each row uniquely.
Explain one important difference between Table and Primary key.
Answers and marking guidance
Answers and marking notes
- Foreign key
The scenario directly calls for Foreign key.
- Schema
The intended concept is Schema.
- A relation represented as rows with named columns.
The definition in the lesson notes gives the required condition.
- Table: A relation represented as rows with named columns. Primary key: A constraint identifying each row uniquely.
Credit a clear distinction using both definitions and an appropriate example if supplied.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.