Sustainability × Databases
Business lens: Sustainability · Technology lens: Databases
Reading scope: Original synthetic teaching; selected primary background and same-author checks are not independent validation.
A sustainability schema preserves meaning
A fictional company stores every environmental quantity in one numeric column. Kilograms of material, litres of water and kWh of electricity can all be added, producing a total with no coherent unit. A database can enforce relationships and valid categories, but its design must reflect the questions the business needs to answer. Begin with the activity, unit, period and evidence status. Computing can prevent some invalid combinations. People must define the model and review whether it represents actual operations. A schema that accepts a value is not evidence that the quantity is correct or that its environmental significance is understood.
Stewardship across quantities
Operations explains activity data, Procurement describes materials, Finance reconciles periods and the database team implements units and identifiers. A sustainability steward should define which transformations are permitted and retain the source value. Consultation may identify that two records represent the same activity at different stages. Distinguish a conversion within one quantity type from an attempted addition across different dimensions. Missing values should have an explicit state rather than silently becoming zero. Local organisations may use a spreadsheet first; global organisations may use many databases. Both require a data model that keeps uncertainty and unit meaning available to the reviewer.
Worked constraint check
In 60 fictional activity rows, 36 have a valid activity-unit pairing and a stated period, 15 have a valid pair but no period, and nine use an incompatible unit. Fully schema-valid rows are 36/60 = 60%. Recovering periods for ten rows and correcting six unit assignments raises full schema validity to 52/60, approximately 86.67%. Five missing periods and three incompatible assignments remain. The increase is approximately 26.67 percentage points. The corrected assignments require documented evidence; they must not be guessed to pass validation. Even the 52 valid rows may contain inaccurate values, so schema validity is not environmental data assurance.
Query and aggregation failures
A join can duplicate an activity when several documents support it. Count distinct activity identifiers where the question concerns activities, and examine allocation when one document covers several activities. A reporting query should group by quantity type and unit rather than sum everything together. Display unresolved values outside the supported total. A clean-looking output can hide missing periods or inappropriate conversions if the query suppresses them. The manager should ask what the database rule establishes and what remains a source-evidence question. That distinction is central to using computerised records responsibly in environmental decisions.
Constraint lesson extension
Extend the database constraints lesson with sixty invented activity rows, allowed unit pairs and nullable values accompanied by evidence status. Reject incompatible pairs and route missing periods for review. Reproduce the 52-valid-row result without adding unlike units. Add a duplicate supporting-document join to demonstrate the need for a distinct activity count. Your portfolio should include the eight remaining gaps and a source correction history. This is a bounded SQL exercise, not a validated environmental inventory. Real quantity accuracy, allocation and applicable reporting methodology require evidence beyond the schema and query checks.
Question words for data models
Who defines the unit and Whom should the analyst consult? Whose activity does the row represent? What quantity is stored, Where is its source and When does the period apply? Why is one combined total meaningless? Which conversion is dimensionally valid? How will a corrected value preserve the original? These questions connect databases, stewardship and departmental interoperability. They also help the learner distinguish a technically enforced rule from the wider evidence needed for a sustainability statement.
Progressive learning
Foundation learners explain why litres and kWh cannot form one ordinary quantity total. Undergraduate learners calculate 60% and 86.67% schema validity and retain the eight unresolved rows. Postgraduate learners critique joins, allocation and hidden missingness. Research learners propose a study of unit-aware schemas and reporting errors with independently checked categories. A DBA contribution could examine how structured evidence states influence managerial confidence. For revision, reconstruct the sixty-row partition and explain why passing every database constraint would still not prove that the recorded environmental values are accurate.
Study questions and answers
What is revised schema-valid coverage?
52/60 ≈ 86.67%, with five missing periods and three incompatible unit assignments remaining.
Marking guide: Credit 52/60=86.67%, five period gaps and three incompatible units.
Can litres and kWh be summed into an ordinary activity total?
No. They represent different dimensions; any composite index needs an explicit separate method.
Marking guide: Reject direct litres+kWh addition; composite index requires declared separate methodology.
Why count distinct activities after a document join?
Several documents may support one activity. Joined-row counts can duplicate activities and inflate a raw count; a coverage percentage can be biased in either direction depending on multiplicity. Use distinct eligible activity identifiers in both numerator and denominator.
Marking guide: Preserve distinct activity grain in numerator and denominator; distinguish duplicated counts from a percentage whose bias direction depends on join multiplicity.
Practice task
Validate sixty fictional unit-aware activity rows with evidence states and distinct-activity reconciliation.
Practice bridge
- Validate sixty fictional unit-aware activity rows with evidence states and distinct-activity reconciliation.
- 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
- GHG Protocol Corporate Standard gateway
Scope: Free public standard gateway and selected boundary background checked; not a full standard or assurance review. Linked training access not independently checked.
Access: Free public page or document; selected access/background check. - PostgreSQL — Joins between tables
Scope: Inner pairing and preserved unmatched left rows.
Access: Public selected reading; no course,certificate or hosted-service entitlement verified. - PostgreSQL — Constraints
Scope: Primary, unique, not-null and foreign-key constraints; establishes structural rules, not factual accuracy.
Access: Public selected reading; no course,certificate or hosted-service entitlement verified.