Ethics and trust × Databases
Business lens: Ethics and trust · Technology lens: Databases
Reading scope: Original synthetic teaching; selected primary background and same-author checks are not independent validation.
Schema decisions carry consequences
A database schema determines which facts a system can represent and which distinctions it may erase. In a fictional membership system, a single status field might combine unpaid, disputed and awaiting verification. Those conditions can justify different next steps, so collapsing them may deny a person an appropriate review. Ethical database design begins with the decisions records support and the people affected. Ask which states must remain distinct, which relationships require evidence and what correction path is available. A convenient table is not automatically a fair representation of the organisation's work or its members' circumstances.
Constraints protect defined invariants
A constraint can require a value, enforce a relationship or restrict duplicate identifiers. It expresses a declared rule, not a universal ethical judgement. The official SQLite CREATE TABLE documentation provides free background on its table constraints and associated behaviour. Read the relevant engine documentation rather than assuming identical enforcement across products. Membership staff define legitimate states, finance explains payment evidence and developers implement the schema. If a rule is uncertain or exceptions are meaningful, represent that uncertainty explicitly instead of forcing the data into an inaccurate approved or rejected category merely to satisfy a simplistic field design.
Worked integrity review
A synthetic database review examines fifty membership records. Forty-two satisfy the stated relationship and status checks, five have broken references and three have unresolved status evidence. Confirmed conformance is 42/50 = 84%. The eight other records need two different investigations. Fixing all five references without resolving the three status cases produces 47/50 = 94% conformance under the exercise rule. It does not prove that every remaining value is correct or that the schema captures every legitimate circumstance. A foreign-key relationship can be technically valid while connecting to the wrong real-world person; identifier meaning still needs evidence.
Make correction propagate
A corrected membership record may feed billing, access and reporting views. Name the owner who confirms the correction in the consequential decision view, not only in the base table. Preserve the reason and version needed to understand the change, while avoiding unnecessary duplication of sensitive material. A disputed payment should not be overwritten as a confirmed failure simply because one downstream system lacks a dispute category. Departments should consult on the meaning and temporary action. A person affected by the error needs one coherent route to explain it rather than repeated requests to negotiate separately with every database consumer.
Practise constraints with synthetic data
Use the existing constraints lesson and add records illustrating a broken reference, a duplicate identifier and an unresolved status. State the expected behaviour before running a command. Inspect whether a rejected operation preserves a usable explanation and whether a correction makes downstream checks consistent. Add a record that passes structural constraints but references the wrong synthetic member, then explain why that requires a semantic check. This reading provides the worked fifty-record review and an extension to an existing lesson. It does not inspect a production database or independently validate the learner's chosen schema. Keep executed commands and observed outputs in a separate log.
Balance representation and exposure
Adding more fields can preserve useful context but can also increase information exposure and the chance of future inappropriate use. Ask whether a specific decision needs the detail or only a bounded status and evidence reference. Retention and access require named review owners. Database design should leave a practical way to revise meanings when the organisation learns that an earlier category is misleading. Local naming practices, language and changing organisational relationships can challenge simplistic assumptions. Applicable legal rights and duties must be verified separately. Structural correctness, appropriate information use and fair treatment are connected concerns, but none can be inferred automatically from the others.
Enquiry and levels
Who defines the status rule? Whom does a broken reference affect? Whose identity is linked? What remains unresolved? Where does correction propagate? When is an exception reviewed? Why can a valid reference be wrong? Which distinction must the schema preserve? How is evidence recorded? Foundation study distinguishes a table and a business fact. Undergraduate study calculates conformance and tests constraints. Postgraduate study critiques semantic correctness, exposure and exception design. Research study defines a bounded synthetic schema evaluation with declared cases and acceptance criteria. The portfolio demonstrates analysis and specified local practice, not lawful processing, universal database correctness or the ethical quality of real membership decisions.
Study questions and answers
Compute conformance before and after reference fixes.
42/50 = 84%; after five fixes, 47/50 = 94%, with three unresolved status cases.
Marking guide: Credit 84% then 94% after five reference fixes, retaining three unresolved cases.
Can a structurally valid reference be wrong?
Yes. It may identify the wrong person despite satisfying the declared database relationship.
Marking guide: Explain that a structurally valid relationship can refer to the wrong person; require identity evidence.
Why preserve disputed separately from unpaid?
They can support different review and temporary-action decisions; collapsing them may erase consequential context.
Marking guide: Keep disputed and unpaid states separate because they support different review/action decisions.
Practice task
Extend the constraints lesson with three defect types, a semantically wrong valid reference and a downstream correction map.
Practice bridge
- Extend the constraints lesson with three defect types, a semantically wrong valid reference and a downstream correction map.
- Reproduce the stated arithmetic, change one valid assumption and distinguish actual lesson observations from the invented case.
Boundary: Original synthetic teaching connected to an existing bounded or guided lesson. No new executable fixture, catalogue lab or external platform execution claimed.
Sources and further reading
- SQLite CREATE TABLE
Scope: Selected table and constraint background; structural conformance is not business truth.
Access: Free selected official background; no certificate or enrolment claim.