Entitx

Metadata and modeling

Conceptual, logical and physical data models compared

  • Updated
  • 7 min read
  • By Mateusz Pierzchała
Contents

A data model describes the data an organization uses and the rules that connect it. Data models are usually drawn at three levels of detail: conceptual, logical and physical. Each level answers a different question for a different audience, and the links between the levels carry business meaning all the way down to the database.

In short

  • A conceptual model shows the main business concepts and how they relate, in business language. It answers “what does the business deal with?”
  • A logical model adds attributes, keys and precise relationships, independent of any database product. It answers “what exactly do we need to record?”
  • A physical model describes how the data is stored in a specific database: tables, columns, data types, indexes and constraints. It answers “how is it implemented?”
  • Keeping the levels linked lets you trace a business concept to the columns that store it, and see which concepts are not implemented anywhere.

The three levels at a glance

ConceptualLogicalPhysical
PurposeAgree on scope and meaning with the businessSpecify data requirements preciselyImplement the data in a database
AudienceBusiness stakeholders, architectsData architects, analysts, modelersDevelopers, database administrators
ContentsMain entities and their relationshipsEntities, attributes, primary and foreign keys, cardinality, normalizationTables, columns, data types, indexes, constraints, partitions, views
NamesBusiness names: Customer, OrderBusiness names, standardized: Customer Birth DateTechnical names: customer.birth_dt
TechnologyIndependentIndependent of the database productSpecific to one database product
SizeSmall: the main concepts onlyEvery entity and attribute in scopeEvery table and column of one database

Conceptual data model

The conceptual model captures the business concepts within a scope (the whole enterprise, a business area or a project) and the relationships between them. It is deliberately simple: entity names, short definitions and relationships with their cardinality, such as “a customer places zero or more orders; each order is placed by exactly one customer”.

It is the model business people can review. Its main value is agreement: on what the business deals with, what each concept means and what is in scope. An enterprise-wide conceptual model, sometimes called a subject area model, is also a natural backbone for the data domains of data governance.

Logical data model

The logical model turns the concepts into a precise specification of the data to record, still independent of any database product:

  • every entity with its attributes, each with a definition and a logical data type (text, number, date, amount, code);
  • primary keys that identify each instance, and foreign keys that implement relationships;
  • the cardinality and optionality of every relationship;
  • normalization, usually to the third normal form, so that each fact is recorded once;
  • many-to-many relationships resolved through associative entities;
  • supertypes and subtypes, for example Party with Person and Organization.

The logical model is where the terms of the business glossary are given a precise structure, and where most modeling decisions are made.

Normalization in brief

Normalization organizes attributes so that each fact is stored once and depends only on the key of its entity:

  • First normal form: each attribute holds a single value, with no repeating groups.
  • Second normal form: every non-key attribute depends on the whole key, not on part of it.
  • Third normal form: non-key attributes depend only on the key, not on other non-key attributes.

A normalized logical model avoids update anomalies. Denormalization, for performance or for analysis, is a physical design decision, taken deliberately later.

Physical data model

The physical model describes the implementation in a particular database: table and column names that follow naming standards, data types and lengths for that product, nullability, primary, foreign and unique key constraints, indexes, partitioning, views, and sometimes storage and security settings.

One logical model can have several physical implementations: an operational database, a data warehouse table, a file layout or an API message. Each of them is a physical model of the same logical data.

How the levels connect

ConceptualLogicalPhysical
CustomerCustomer (Customer Identifier, Customer Name, Birth Date, Customer Status Code)crm.customer (customer_id BIGINT, customer_nm VARCHAR(200), birth_dt DATE, status_cd CHAR(2))
Customer places OrderOrder (Order Identifier, Customer Identifier, Order Date), with a foreign key to Customersales.order_header, with customer_id referencing crm.customer
ProductProduct (Product Code, Product Name, Product Category Code)catalog.product, and a reporting copy in dw.dim_product

Kept as metadata, these links answer questions that span the levels:

  • Which physical columns store the concept “customer birth date”?
  • Which logical entities have no physical implementation yet?
  • Which physical tables implement nothing in the logical model, and why do they exist?
  • If a logical attribute changes, which tables, columns and interfaces are affected?

The links are also the vertical dimension of data lineage, and the bridge between the data model and the business glossary.

Notations

NotationTypical use
Crow’s foot (Information Engineering)The most common notation for logical and physical models, with cardinality shown at the ends of relationships
ChenConceptual models and teaching, with entities, relationships and attributes as separate shapes
IDEF1XLogical and physical models, especially in government and defence projects
UML class diagramsObject-oriented design, and logical models in software projects
BarkerLogical models, close to crow’s foot with its own conventions for subtypes

The relational model, the foundation of logical and physical modeling, was introduced by Edgar F. Codd in 1970; the entity-relationship model, the basis of most diagram notations, by Peter Chen in 1976. The idea of separating levels of description goes back to the ANSI/SPARC three-schema architecture of the mid-1970s.

Naming standards

Consistent names make models readable and searchable. Common practice, in line with ISO/IEC 11179:

  • names built from an object (Customer), a property (Birth) and a representation term or class word (Date, Amount, Code, Identifier, Name, Indicator, Quantity, Text);
  • singular entity names;
  • full words in logical names, and an approved list of abbreviations for physical names (dt for date, amt for amount, cd for code);
  • the same name for the same thing in every model.

Checking names automatically against the standard catches inconsistencies before they reach the database.

Analytical models

Data warehouses often use designs optimized for analysis:

  • Dimensional models, or star schemas, organize data into facts (measurements, such as sales amounts) and dimensions (their context, such as date, customer and product).
  • Data Vault separates business keys (hubs), relationships (links) and descriptive history (satellites), favouring auditability and flexibility when sources change.

These are design patterns at the logical and physical levels; the conceptual model and the glossary still define what the data means.

Common mistakes

  • Starting from the physical model. Designing tables first bakes technical decisions into the business’s understanding of its own data.
  • Skipping the conceptual level. Without agreement on the concepts, the logical model answers the wrong question precisely.
  • Models that drift from the database. A model that is never compared with the implementation becomes fiction. Compare them regularly, or harvest the physical model from the database.
  • Unlinked levels. Separate conceptual, logical and physical diagrams with no links between them lose the trace from meaning to storage.
  • No definitions. Names alone are ambiguous; every entity and every important attribute needs a definition.
  • Inconsistent names. The same data under different names in different models makes searching and integration harder.

Frequently asked questions

What is the difference between a logical and a physical data model?

A logical model specifies the data to record (entities, attributes, keys and relationships) independently of any database product. A physical model describes how that data is implemented in a specific database, with table and column names, data types, indexes and constraints. One logical model can have several physical implementations.

Do we need all three levels of data model?

Not for every project, but each level serves a purpose. The conceptual model creates agreement with the business, the logical model makes the requirements precise, and the physical model implements them. For enterprise data and critical systems, keeping all three and linking them pays off in impact analysis and shared understanding.

Is an ER diagram a conceptual model?

An entity-relationship diagram is a notation, not a level. ER diagrams are used at all three levels: with only entities and relationships for a conceptual model, with attributes and keys for a logical model, and with tables, columns and data types for a physical model.

Which data modeling notation should we use?

Crow’s foot notation is the most widely used for logical and physical models, and it is easy to read. More important than the choice is using one notation consistently across the organization.

How does a data model relate to the business glossary?

The glossary defines business terms; the data model gives them structure. Conceptual entities and logical attributes should correspond to glossary terms, and physical columns are linked to the attributes they implement, so that a term can be traced to every column that stores it.