Research and evidence × Databases
Business lens: Research and evidence · Technology lens: Databases
Reading scope: Original fictional teaching. Selected documentation and same-author checks are not independent editorial validation.
The query defines an analytical population
A fictional researcher asks how often a retailer resolves customer complaints within its promised period. Complaint records sit in a database with updates and status history. The researcher writes a query for closed complaints and calls the result the retailer’s resolution performance. Research and databases meet at the population selected by the query. Decide whether the question concerns all complaints received, only closed cases or particular types of complaint. Define the observation cutoff and the unit counted. A correct database query can answer the wrong research question if its inclusion rules exclude the cases most relevant to the claim.
Version both the data and the definition
Customer Service defines closure, IT explains schema history and the researcher specifies analytical eligibility. One complaint may have several status rows; joining all history rows can multiply it. Use a declared snapshot or time-based rule so a later database update does not silently rewrite the earlier analysis. Retain the query, parameter values and input version. A count of distinct identifiers can prevent one form of duplication, but it cannot repair a wrong closure definition. Discuss reopened cases and records with missing dates. The database’s structural integrity is helpful, yet substantive meanings still depend on the organisational process being studied. Record the exact time zone used for deadline comparisons.
Worked snapshot and deadline calculation
The invented snapshot has sixty distinct complaints: forty-five closed and fifteen open. Thirty-six of the forty-five closed complaints meet the declared deadline. On-time coverage among closed cases is 36/45 = 80%; verified on-time closures among all received complaints are 36/60 = 60%. The two measures answer different questions. A naive status-history join returns ninety rows for the same sixty complaints, so ninety cannot become the case denominator. At a later snapshot, six previously open complaints close, four within their deadline and two after it. There are now fifty-one closed cases, forty on time and nine still open.
Interpret the later snapshot honestly
The later on-time rate among closed complaints is 40/51 ≈ 78.43%; verified on-time closures among all sixty are 40/60 ≈ 66.67%. The lower closed-case rate does not mean four successful outcomes disappeared. It reflects the composition of newly closed cases. Retain both snapshots and explain their cutoffs. If an open complaint has already passed its deadline, its status contributes differently to a time-to-resolution study than one received yesterday. This example does not perform that analysis. A defensible report should not claim that excluding all open records removes uncertainty; it changes the population described.
Practice a snapshot query specification
Use the existing SQL-joins lesson to specify complaint and status-history tables with sixty distinct cases and ninety history rows. Write the intended inclusion rules in plain language before proposing SQL. Reproduce 80%, 60%, 78.43% and 66.67% using the appropriate snapshots. Your portfolio should include a reopened-case rule and a query-output check for duplicate identifiers. This connects an existing bounded database lesson to research design; it adds no newly executed query fixture or validated retailer dataset. If you later implement the query locally, compare observed outputs with the fictional expected counts and retain any disagreement.
Enquiry and level progression
Who defines closure, and Whom should the researcher consult about status history? Whose open complaint is excluded? What is the analytical population, Where is the snapshot retained, and When is the cutoff? Why can a join multiply cases? Which rate answers the question? How is a later update reported? Foundation learners distinguish a case from its history rows. Undergraduate learners calculate conditional and overall rates. Postgraduate learners critique selection, reopening and changing snapshots. DBA/research learners design a query-based evidence protocol that makes temporal scope and organisational meaning auditable. For revision, explain how verified on-time closures can rise from thirty-six to forty while the on-time percentage among closed cases falls from eighty percent.
Study questions and answers
What are the initial two on-time measures?
36/45 = 80% among closed cases; 36/60 = 60% among all received complaints.
Marking guide: Credit 80% among closed versus 60% all received from thirty-six timely.
What are the later measures?
40/51 ≈ 78.43% among closed cases; 40/60 ≈ 66.67% among all sixty complaints.
Marking guide: Credit 40/51=78.43% closed versus 40/60=66.67% all complaints.
Why can the conditional percentage fall while successful closures rise?
Four on-time and two late cases join the closed cohort; its composition changes, so count and conditional rate can move differently.
Marking guide: Four timely/two late additions alter closed-cohort mix; successful count can rise while conditional rate falls.
Practice task
Specify reproducible complaint snapshots and distinguish received-case and closed-case populations.
Practice bridge
- Specify reproducible complaint snapshots and distinguish received-case and closed-case populations.
- Reproduce the worked arithmetic, change one assumption and label invented evidence separately from actual practice observations.
Boundary: Original fictional exercise connected to an existing bounded or guided lesson. No new executable fixture, external platform execution or catalogue lab claimed.