AAmit’s LibraryLEARN · PRACTISE · REFLECT

Planning and branding × Databases

Business lens: Planning and branding · Technology lens: Databases

Reading scope: Original synthetic business and computing application. Source links support technical background, not the invented organisations or arithmetic.

Make the brand promise traceable

A neighbourhood learning centre advertises small classes and personal attention. Its marketing team collects enquiries in a spreadsheet, admissions maintains registrations and teaching staff track attendance separately. The brand promise becomes difficult to assess when one learner appears under several spellings. A database helps preserve relationships between enquiries, enrolments and service delivery, but it cannot decide whether personal attention is good enough. Define the planning question first: how many interested people became active learners, and were promised class sizes respected? Keep enquiry identity separate from learner identity because an enquiry may never become an enrolment. A well-designed information structure makes the promise testable without turning every prospect into a permanent customer record.

Entities, keys and meaningful joins

Model Campaign, Enquiry, Learner, Enrolment, Class and Attendance as separate entities. Give each a stable key. An enrolment links a learner to a class and records the start date and status. Attendance refers to that enrolment or an explicitly defined session relationship. Do not join two tables merely because both contain a person's name. Names can change, repeat or be misspelled. Decide how missing campaign attribution is represented; unknown should not silently become the most successful campaign. Retain only the contact information required for the stated process and give staff appropriate access. Document whether a withdrawn enrolment belongs in a conversion denominator. That is a business definition which must be consistent before SQL can answer the question.

Conversion arithmetic and duplicate inflation

For this synthetic campaign, 120 distinct prospects each make one enquiry, and 24 of those prospects enrol once during the stated campaign observation period, giving a 20% prospect-to-enrolment conversion rate. Six of the enrolled people attend two sessions each and the remaining eighteen attend one session. Joining enrolments to attendance yields 30 attendance rows. Counting those rows as enrolments produces 30 / 120 = 25%, an inflated conversion claim. Correct the grain of the query: one row per enrolled person or per enrolment, according to the explicitly stated measure, rather than one row per attendance event. Distinct counting may repair this example but is not a universal cure for a poorly defined join. Check the entity relationship and investigate missing or repeated records before publishing marketing results.

A planning loop across departments

Marketing records a campaign identifier when the prospect supplies it voluntarily or the system legitimately captures the source. Admissions confirms identity and enrolment status. Teaching staff record sessions without rewriting campaign history. Finance reconciles fee status but does not decide pedagogical attendance. A manager reviews the funnel together with class size and learner feedback. Give each department a way to correct its own record while preserving a useful correction history. Publishing only conversion rewards admissions volume; publishing only attendance rewards activity. The combined planning review asks whether the centre attracted suitable learners and delivered the advertised experience. Computers aid the handoff by retaining explicit relationships; staff still interpret complaints and decide which service changes are appropriate.

Transactions, corrections and levels

Suppose admissions creates an enrolment but the associated class-capacity update fails. The database can then show a learner enrolled without a consistent place allocation. For a bounded SQLite exercise, group related changes in an explicit transaction and deliberately test a failed second operation. Verify the resulting state after rollback rather than assuming every error automatically undoes the whole business operation. Keep payment processing outside this local demonstration. Foundation learners draw the entities and explain a key. Undergraduate learners reproduce the inflated join and correct its grain. Postgraduate learners critique attribution and retention incentives. Research learners ask whether more reliable service records improve trust, define measures beyond conversion and discuss consent and selection effects in feedback data.

Nine questions and evidence for the promise

Who approves the definition of an active learner? Whom should a prospect contact to correct an enquiry? Whose records are joined when two people share a name? What is the counting grain of the conversion query? Where is unknown attribution represented? When does an enrolment leave the active population? Why does an attendance join inflate the campaign result? Which service measure tests the small-class promise? How will a failed capacity update be rolled back and checked? Submit an entity diagram, a twelve-row miniature dataset, two query outputs and a marketing correction note. Explain how an accurate 20% conversion rate can coexist with a poor learner experience. Database consistency improves evidence; it cannot manufacture the trust that the brand promises.

Study questions and answers

Calculate the valid conversion rate and explain the inflated alternative.

Under the one-enquiry-per-prospect and one-enrolment-per-enrolling-prospect fixture, 24 of 120 prospects enrol, giving 20%. The attendance join creates 30 rows, producing an invalid 25% if those event rows are counted as enrolled people. Fix the measurement grain and relationship before reporting the campaign result.

Marking guide: Credit 24/120 = 20% at unique-person grain, versus erroneous 30/120 = 25% from joined attendance rows. Require fixing grain/relationships, not merely editing the displayed percentage. State the one-enquiry-per-prospect fixture and common cohort; unique enquiry IDs alone do not guarantee distinct people.

Why should the admissions transaction be tested with a failed second operation?

The test exposes a partial update: an enrolment without consistent capacity allocation. Explicitly roll back the bounded transaction on failure and inspect the state. Do not assume that every database error automatically reverses all earlier statements in the intended business operation.

Marking guide: Credit intentionally failing the second operation and inspecting partial state. Require explicit rollback of the intended bounded transaction; reject a blanket assumption that any database error undoes everything.

Does a correct conversion query validate the personal-attention promise?

No. Conversion measures movement through a defined admissions funnel. Personal attention needs additional evidence such as class sizes, support responsiveness and learner feedback. Accurate records make those questions easier to investigate but cannot replace service evaluation.

Marking guide: Credit conversion versus the separate personal-attention promise. Require relevant class-size, support or learner-feedback evidence, not only a correct funnel query.

Practice task

Build an entity diagram, miniature campaign dataset, grain-correct query and correction note.

Sources and further reading

  • SQLite transaction reference
    Scope: Public documentation on transaction behaviour; synthetic business cases below are our own. No course or certification review.

Related chapters

Interactive practice

Open workshop

Open interactive matrix reading