A CLOSER LOOK
The reviewed course index lists 15 lessons and expects prior familiarity with introductory computer concepts. Its database lesson introduces tables and keys, then asks learners to import a small CSV file and query the results. That is a useful starting point for asking what a row represents and how another row can refer to it.
Try this original paper exercise with invented data. Give two borrowers the same displayed name, Alex, and assign them different borrower IDs, B17 and B28. On a separate loan sheet, record a book borrowed by B17. Now change that borrower’s displayed name to Alex Rivera. The loan can still identify B17. A name alone would have left the two borrowers ambiguous. The example chooses IDs that remain stable; software must preserve that choice when records are edited.
Wikiversity describes a primary key as a unique record identifier and a foreign key as a cross-reference between tables. SQLite’s documentation makes the enforcement issue tangible: a comment saying that a value must match another table does not enforce the relationship. A declared foreign-key constraint can reject an unmatched reference when foreign-key enforcement is enabled.
Return to the paper model. Invent a loan for B99, who has no borrower card. Mark the missing reference. Then consider removing B17’s card while their loan remains. Both changes leave a relationship that needs a policy. SQLite documents several possible actions for changes to a referenced record, including rejecting an operation or cascading a change. The choice belongs in the design; automatic deletion would be a consequential choice for a real lending history.
A query answers a question about stored records. For this example, ask which loans refer to B17 and predict the result before using software. SQLite documents SELECT as a query that returns rows without changing the database. Reordering a result or displaying a new name does not, by itself, repair a missing reference. This distinction helps separate what a screen shows from the relationships the stored data must maintain.
The paper exercise illustrates one relationship and omits the privacy rules and loan-return workflow a real library would need. If trying SQLite, check its documented foreign-key setup: applications should explicitly enable enforcement for each connection rather than assume a default. The Wikiversity index still names the older FC0-U61 exam target; this page makes no claim about current certification coverage. No linked video or course image is reused. The generated card-file scene is a conceptual illustration, with no real borrower data.
Adapted course context: Wikiversity contributors · CC BY-SA 4.0; original lending-library exercise · Source credits · License and reuse terms