Local outlook and global outlook × Databases
Business lens: Local outlook and global outlook · Technology lens: Databases
Reading scope: Original synthetic teaching. Primary links support selected background, not invented business outcomes or implemented organisational systems.
A database needs units as well as values
A global sales table can contain numbers that look comparable while representing different currencies, quantities or reporting periods. A local branch may understand its own shorthand, but a shared database needs explicit meaning. Begin with an amount, currency code, transaction identity and effective date rather than a single field called value. Computers can enforce permitted combinations and preserve records; people define which comparison is appropriate. A successful query does not justify adding incompatible units. The learning problem is therefore both technical and managerial: establish a record contract that keeps locally meaningful transactions usable in a global discussion of value.
Choose representation without inventing comparability
Exact numeric types can support amounts that need specified decimal precision, while a currency field identifies the unit. The selected database reading supplies background on numeric representation, not a rule for every accounting system. A record also needs an interpretation of scale, rounding and adjustment. If an exchange rate is used, preserve its stipulated source, date and purpose separately from the transaction amount. A rate for a classroom comparison is not a current market quote, settlement amount or accounting policy. Constraints can reject missing currency labels, but they cannot establish that a supplied currency code or amount is factually correct.
Use a declared conversion solely for the example
The invented table contains a sale of ₹1,000 and a sale of USD 10. Their raw numeric sum, 1,010, has no coherent currency unit. Under the classroom assumption of ₹80 per USD, USD 10 becomes ₹800 and the comparable total is ₹1,800. This rate is deliberately synthetic. In a separate ten-row validation ledger, eight rows contain the required currency and scale fields and two lack a currency label. Structural completeness is 8/10 = 80%; two rows remain unresolved. Completeness does not prove correct valuation. Changing the stipulated rate to ₹90 would change the example total to ₹1,900 without changing either original sale.
Keep finance authority distinct from storage authority
Finance defines the comparison purpose, accepted conversion rule and rounding treatment. The source owner confirms transaction meaning. Database staff implement fields and constraints, and reporting staff disclose the rule in the output. Local teams should be able to correct a wrongly labelled transaction without silently replacing its source history. Consultation is needed when a branch reports in one currency but settles in another. The business owner decides whether a provisional comparison is useful; the database administrator does not gain that authority merely by controlling the table. A trustworthy handoff retains the original unit and identifies which transformed view management is using.
Practice a small integrity contract
Use the constraints lesson to describe required amount, currency and scale fields. Prepare the ten-row validation ledger and hold the two missing-unit rows outside the comparable total. Recalculate the two-sale example at both stipulated rates, showing that sensitivity comes from the conversion assumption. A database exercise should test missing labels, invalid types and duplicate transaction identities separately. This extension supplies a hand worksheet and schema discussion, not executed multinational accounting or verified foreign-exchange data. Real valuation would need an appropriate policy, authoritative inputs and suitable controls beyond the two amounts and numeric-type background supplied here.
Levels and unit questions
Who approves the comparison rule? Whom does a valuation error affect? Whose transaction is represented? What unit does the amount use? Where is the conversion assumption retained? When does it apply? Why is 1,010 invalid as a currency total? Which row lacks meaning? How is a corrected unit traced? Foundation study distinguishes number and unit. Undergraduate study computes the two converted totals and completeness rate. Postgraduate study critiques rounding, settlement and provisional reporting. Research study proposes a bounded study of cross-branch record comparability. The portfolio should join database integrity with financial interpretation, demonstrating that globally shared storage is useful only when its values carry defensible meaning.
Study questions and answers
Compute the total under ₹80 per USD.
₹1,000 + 10 × ₹80 = ₹1,800; the rate is synthetic.
Marking guide: Credit 1,000 + 10×80 = 1,800 under the invented exchange rate.
What changes at ₹90 per USD?
The comparable total becomes ₹1,900; original transaction amounts remain unchanged.
Marking guide: Credit total 1,900 at the alternative rate; original transaction amounts do not change.
What does 80% completeness establish?
Eight of ten rows have required currency/scale fields, not verified valuation or factual correctness.
Marking guide: Credit field presence for eight of ten, not verified valuation or factual correctness.
Practice task
Write a currency-aware record contract and a two-rate sensitivity table while preserving original amounts.
Practice bridge
- Extend the constraints lesson with amount, currency, scale and transformation-purpose fields.
- Hold missing-unit records and recompute the synthetic total at two declared rates.
Boundary: This extension is a schema and arithmetic worksheet, not current foreign-exchange advice, executed SQL or accounting-policy validation.
Sources and further reading
- PostgreSQL — Constraints
Scope: Selected positivity and presence-rule semantics; not actual database execution or factual source validation.
Access: Public selected reading without an account; service entitlements, certificates and hosted execution not verified. - PostgreSQL — Numeric types
Scope: Selected numeric representation background, not accounting-policy or current exchange-rate verification.
Access: Selected public reading without an account; certificates, paid service entitlements and hosted execution not checked.