Module 13 of 52 · Modelling and statistics

Data modelling basics

30 min 3 outcomes Interactive + drag challenge 4 sources cited

By the end of this module you will be able to:

  • Create conceptual and logical data models
  • Apply normalisation rules to reduce redundancy
  • Choose between relational and document models for different use cases

Conceptual, logical, and physical models for three audiences

Conceptual names the entities, logical adds attributes, types and keys, and physical settles storage and indexes. Skip the logical level and the conceptual diagram is pasted straight into the database, which is where overlapping tables and lost relationships come from.

Data modelling is three levels with three audiences: conceptual (business reviewers), logical (architects), physical (DBA + platform). Each level adds detail at the cost of audience scope. DAMA-DMBOK 2 names the layers; skipping a layer loses the bridge between business and storage.

Conceptual, logical, physical models for three audiences Top row: three cards left to right, Conceptual with entities and relationships, Logical with attributes, types and keys, Physical with storage, indexes and partitions. The Logical card is emphasised in pale red with a red border; the other two are white with grey borders. Red arrows join them, labelled decomposes into and implemented as above the row. Below, three grey bars stand on one rule, each left-aligned under its own level and each shorter than the last, reading Business reviewers, Architects, DBA plus platform, so the narrowing of audience is drawn to scale. A filled red band closes the figure: skipping the logical level leaves a translation gap. The bars below are the audience, each one shorter than the last 1ConceptualEntities + relationshipsDMBOK 2 2LogicalAttributes + types + keysDMBOK 2 3PhysicalStorage + indexes + partitionsISO 9075 decomposes into implemented as Business reviewers Architects DBA + platform Skipping logical leaves a translation gapConceptual diagrams pasted into the database create overlapping tables and lost relationships. The logical layer is the bridge.

Normalisation trade-off across forms and workloads

Normalisation level is a trade-off against workload: the forms tighten from atomic columns through 3NF, which OLTP wins from, to BCNF, and the star loosens them again for the wide facts OLAP wins from, so one schema built to satisfy both serves neither well.

Normalisation is a trade-off: 3NF reduces anomalies but explodes joins for analytics; denormalised stars cut join cost at the price of update anomalies. The right level depends on the workload, not on aesthetics. Codd 1971 defined the normal forms; Kimball + Inmon named the analytics counter.

Normalisation trade-off across forms and workloads Top row: four cards left to right, 1NF atomic columns, 2NF no partial dependencies, 3NF no transitive dependencies, BCNF every determinant is a candidate key. A red arrow between each pair carries a plus sign, because each rung adds a constraint. The 3NF card is emphasised in pale red with a red border; the others are white with grey borders. From the middle of the BCNF card a red arrow labelled OR drops out of the row into a bar running the full width, holding the denormalised star with wide facts and dimensions, credited to Kimball; its width says the star is the other whole design, not a narrower fifth rung. A filled red band closes: workload picks the level, not aesthetics. The star is not a fifth rung; it is the decision to leave the ladder 1NFAtomic columnsNo repeating groupsCodd 1971 2NFNo partial depsOn full keyCodd 1971 3NFNo transitive depsMost anomalies goneCodd 1971 BCNFEvery determinantIs a candidate keyCodd + + + OR STARDenormalised starWide facts + dimsKimball Workload picks the level, not aestheticsOLTP wins from 3NF; OLAP wins from star. Mixing is a database that performs neither well.

A retailer stored customer addresses in 14 different tables. Updating one meant updating 14.

A UK retail chain stored customer address data in 14 separate tables across its order management, CRM, billing, loyalty, and marketing systems. Each system had its own copy of the address. When a customer moved house, each system needed a separate update.

Normalisation, the discipline of reducing redundancy within one data model, would have stored the address once inside any single database. Across five separate systems the remedy is master data management: one system of record for the address that the others reference. The previous stage, Foundations, covered what data means and how to judge its quality. This module covers how to structure data so it stays consistent and efficient.

Every time a customer moved, 14 tables needed updating. Inevitably, some were missed. The result: conflicting addresses, returned mail, and compliance failures. How does data modelling prevent this?

Data modelling is the practice of designing how data is structured, stored, and related. A good model reduces redundancy, enforces consistency, and makes queries efficient. A bad model creates the 14-table address problem: data scattered across copies that inevitably diverge.

A useful model separates business meaning from implementation detail.

18.1 Three levels of data modelling

Data modelling operates at three levels, each answering a different design question:

  1. Conceptual model: what are the real-world things and relationships? Example: "A Customer places Orders. An Order contains Products."
  2. Logical model: what attributes, keys, relationships, and constraints express that meaning independent of a database product? Example: Customer(customer_id PK, name, email), Order(order_id PK, customer_id FK, order_date).
  3. Physical model: how will this be implemented in a specific technology? This covers table names, column types, indexes, partitioning, storage engine, and query pattern.

Worked example: "Customer" is easy to say and hard to model. Is the customer a person, a household, an account, a legal entity, or a billing relationship? The conceptual decision determines whether the same person can hold multiple accounts, whether a household can share one account, and how consent or erasure applies.

A data model is a communication tool. If it cannot be understood by both business users and engineers, it has failed its primary purpose.
Paraphrased from DAMA-DMBOK2 (2017) - Chapter 5, Data Modelling and Design

DAMA frames models as communication tools, not technical artefacts. The conceptual model must be readable by a finance director. The physical model must be implementable by a DBA. Both are data models; they serve different conversations.

Common misconception

“We use MongoDB so we do not need data modelling.”

Document databases still benefit from modelling. Deciding which data to embed in a document versus reference from another collection is a modelling decision. Without it, you end up with inconsistent nested structures, unbounded document growth, and queries that scan entire collections. The trade-offs differ from relational databases, but the need for design does not disappear.

Once the entities are clear, normalisation controls duplication and update errors.

18.2 Normalisation

Normalisation is the process of organising data to reduce redundancy, dependency, and update anomalies. Three normal forms cover many practical transactional designs:

  1. First Normal Form (1NF): every cell contains a single value (no lists, no repeating groups). A cell containing "Red, Blue, Green" violates 1NF.
  2. Second Normal Form (2NF): all non-key attributes depend on the entire primary key, not just part of it. In a table with a composite key (order_id, product_id), the product_name depends only on product_id, not on the full key. Move it to a separate Products table.
  3. Third Normal Form (3NF): no non-key attribute depends on another non-key attribute. If postcode determines city, then city depends on postcode, not on the primary key. Move city to an Addresses table keyed by postcode.

“Future users of large data banks must be protected from having to know how the data is organized in the machine.”

E.F. Codd, 'A Relational Model of Data for Large Shared Data Banks' (1970) - Opening abstract

Codd's point is data independence: users should not need to understand storage layout to use data correctly. Normalisation supports the same discipline by separating stable facts from duplicate or implementation-driven copies.

The three forms say what to take out. They do not say how far to go.

18.3 How far to normalise

The leadership implication is consistency. If address, product, price, or eligibility facts are copied into many places, each copy becomes a future disagreement. Normalisation reduces that risk. Deliberate denormalisation can still be right for analytics, but it should be a performance decision made after the canonical fact is understood.

Common misconception

“Normalisation should always be applied to the maximum degree.”

Over-normalisation creates excessive joins that slow query performance. Analytics workloads often benefit from deliberate denormalisation (star schemas, wide tables) that trades storage space for query speed. The right level of normalisation depends on the workload: transactional systems (many writes) benefit from higher normalisation; analytical systems (many reads, few writes) benefit from denormalisation.

Loading interactive component...
18.4 Check your understanding

A table has columns: order_id, product_id, product_name, product_category, order_date. The primary key is (order_id, product_id). product_name depends only on product_id. Which normal form is violated?

An e-commerce company considers using MongoDB (document database) for its product catalogue. Products have varying attributes: electronics have voltage and warranty fields; clothing has size and material. Which model is more suitable?

A data warehouse team denormalises a star schema by embedding dimension attributes directly into the fact table, creating a wide table with 200 columns. What are the trade-offs?

Loading interactive component...

Modelling checks to carry forward

  • Conceptual models define real-world meaning. Logical models define attributes, keys, and relationships. Physical models define implementation choices.
  • Normalisation reduces duplication and update anomalies. The Kent mnemonic tests whether each non-key attribute describes the key, the whole key, and nothing but the key.
  • Document databases still require modelling. Embedding, referencing, indexing, and document growth are design decisions, not reasons to avoid design.
  • Analytics often denormalises for query speed. That should be a conscious workload trade-off, not a substitute for understanding the canonical facts.

Standards and sources cited in this module

  1. DAMA-DMBOK2 Revised (2024) (print edition; the link is DAMA's publisher page, not the chapter text)

    Data Modelling and Design knowledge area

    Industry guidance on conceptual, logical, and physical data modelling.

  2. Kent, W. (1983). 'A Simple Guide to Five Normal Forms in Relational Database Theory'

    Full paper

    Source for the 'key, whole key, nothing but the key' mnemonic and accessible normalisation explanation.

  3. Codd, E.F. (1970). 'A Relational Model of Data for Large Shared Data Banks', Communications of the ACM

    Full paper

    Foundational paper establishing the relational model. Every normalisation concept traces back to Codd's original work.

  4. MongoDB Documentation, 'Data Modeling Introduction' (2024)

    Full guide

    Document modelling patterns including embedding vs referencing decisions.

Module 13 of 52 · Modelling and statistics