1. What is a primary key for?
- Storing every field twice
- Uniquely identifying a record
- Encrypting a table automatically
Check the answer and reasoning
Uniquely identifying a record
Uniqueness allows a record to be referenced unambiguously.
CS / IGCSE
A relational table contains records and fields. A primary key identifies records; queries select and organise data using conditions rather than changing its meaning.
A relational table contains records and fields. A primary key identifies records; queries select and organise data using conditions rather than changing its meaning.
Logic gates implement Boolean operations. Construct a truth table by enumerating every input combination; AND requires both inputs, OR requires at least one and NOT reverses a truth value.
NOT(A AND B) = (NOT A) OR (NOT B)
One of De Morgan’s laws.
What is 1 XOR 1?
Exclusive OR is true only when the two input bits differ.
Predict the worked result before calculating. Change one input, record the new result, and explain which assumptions still hold.
Use the prediction activity below; a local model appears only where it supports this topic.
Uniquely identifying a record
Uniqueness allows a record to be referenced unambiguously.
0
Exclusive OR is true only when the two input bits differ.
No
WHERE filters returned results; SELECT does not itself modify the source table.