Accounting Analytics: An Integrated Approach
Part I of V: Foundations of Accounting Analytics
Chapter 3 of 3 in this Part
Table 3.1 · Common Data Types and How the Charles River Database Stores Them
| Data Type | How Charles River Stores It | Charles River Example |
|---|---|---|
| INTEGER | INTEGER | SalesOrderID in SalesOrder (for example, 1697). AccountNumber in Account (for example, 4010). |
| DECIMAL / NUMERIC | REAL (floating point) | StandardCost and ListPrice in Item (for example, 229.66 and 382.45). Debit and Credit in GLEntry. |
| TEXT / VARCHAR | TEXT | CustomerName in Customer (for example, “Walters PLC”). OrderNumber in SalesOrder (for example, “SO-2024-001697”). |
| DATE | TEXT in year-month-day form | InvoiceDate in SalesInvoice (for example, 2025-03-05). CreatedDate in GLEntry, which also includes the time. |
| BOOLEAN | INTEGER, with 1 for true and 0 for false | IsApproved in Supplier. IsActive in Customer and Item. |
What is each SalesOrderLine column?
What is the cardinality of each relationship?
You should be able to:
Table 3.2 · Comparison of Three Charles River Table Groups
| Feature | Master Data | Order-to-Cash | Accounting Core |
|---|---|---|---|
| Key tables | Item, Warehouse, Employee | Customer, SalesOrder, SalesOrderLine, Shipment, ShipmentLine, SalesInvoice, SalesInvoiceLine, CashReceipt, CashReceiptApplication, and the pricing, service, commission, and returns tables | Account, JournalEntry, GLEntry |
| Complexity profile | Small and relatively static. Referenced by every other group. | The largest group, with deep relationship chains and sub-paths for pricing, services, commissions, and returns. | Simple in structure but deep in scope. GLEntry is the largest table in the database and the integration point for all other groups. |
What connects each pair?
Cardinality · Column · Composite key · Cross-group bridge key · Crow’s foot notation · Data dictionary · Data type · Entity-Relationship (ER) diagram · Foreign key · Header and line tables · Junction table · Many-to-many relationship · One-to-many relationship · One-to-one relationship · Optionality · Primary key · Referential integrity · Relational database · Row · Self-referencing relationship · Source-to-ledger traceability · Surrogate key · Table · Table group · Unique constraint
Next: Comprehensive Case: Getting the Data Ready for the Furniture Margin Question
These slides accompany Accounting Analytics: An Integrated Approach, licensed under CC BY-SA 4.0. Every figure and table comes from the chapter:
https://aa.accountinganalyticshub.com/chapters/03-accounting-data-environment/chapter.html
Chapter 3 · The Accounting Data Environment