AI Glossary / Data engineering and architecture / Advanced

Logical schema

Definition

A logical schema describes how a domain's data is structured, including its entities or record types, attributes, relationships and relevant constraints, without committing to the detailed storage design of a particular database implementation. In a relational setting, it can describe tables and their logical relationships. It provides more structural detail than a broad conceptual outline while leaving implementation choices such as storage layout and tuning to a physical design.

What it means

Before choosing where a database runs or how its indexes are organized, a team must decide what its records mean. Is a customer distinct from an account? Can an order contain several items? Must every enrollment identify both a learner and a course? A logical schema makes such decisions explicit enough to guide implementation and discussion. Its value comes from representing the required information accurately, not from the attractiveness of its diagram. Different modeling methods draw the boundary between logical and physical detail differently, so a project should state the convention it follows.

How it works

Modelers identify the data structures needed for the domain, define their attributes and express their relationships and constraints. They test the design against representative questions and cases. IBM distinguishes logical modeling, which adds detail to domain concepts and relationships, from physical modeling that includes database-specific implementation properties. A logical model can then be mapped into a selected database design. This does not remove the need for decisions during implementation. The mapping must preserve the intended meanings, and later changes should be checked for whether they alter structure, business rules or only storage behavior.

Three practical examples

  • A learning platform separates learners, courses and enrollments so that one learner can participate in several courses without duplicating the learner's identity.
  • A service organization distinguishes customers from support cases and records the relationship between them before choosing a database product.
  • An AI analytics project documents whether each record represents a person, a session or an event so that generated queries aggregate the intended unit.

Think of it this way

Think of a library's plan for describing books, copies and borrowers. The plan says what those things are and how loans connect them, before deciding which cabinet or computer stores the records. It must distinguish a title from an individual copy if two copies can be borrowed separately. That distinction is a structural requirement, not a storage-performance setting.

Worked example

Consider an original simplified course system. Learner has a learner identifier and name. Course has a course identifier and title. Enrollment connects one learner identifier with one course identifier. Assume repeat enrollment in the same course is not allowed. Learners L1 and L2 enroll as follows: L1 in C1, L1 in C2 and L2 in C1. The design represents two learners, two courses and three enrollment relationships. Counting enrollments gives three; counting distinct learners gives two. A rule making each learner-course pair unique prevents a duplicate L1-C1 relationship. If repeat course attempts become a requirement, that rule and the representation need revision, perhaps by representing individual attempts. Adding an index alone would not resolve the changed meaning.

Illustrative case study

In a fictional training business, an AI reporting assistant is asked how many people attended courses. The available design initially treats each enrollment row as a person, so someone taking several courses can be counted repeatedly. Analysts clarify the logical schema and distinguish learner identity from participation records. They then test questions about distinct learners, enrollments and completed attempts separately. The exercise reveals that some questions also need a definition of attendance, since enrollment does not prove participation. The case illustrates how structural clarity supports better analysis while leaving business definitions explicit. It does not claim that a schema alone makes generated queries correct.

Common misconceptions and mistakes

A logical schema is not merely a list of column names. Relationships, identity and constraints are central to its meaning. Nor is it identical to the current contents of a database: the same structure can hold different records at different times. Another mistake is assuming that product independence means independence from every data-model choice. A relational logical design already uses particular structural concepts. Also, the word schema can mean a named namespace in some database products. That usage should not be confused with this entry's description of a logical data structure.

Business use

A logical schema gives business and technical participants a shared object to review before implementation decisions become expensive to change. Use concrete examples to test it: a customer with two accounts, a canceled order, an item with no current assignment or a repeated course attempt. Ask whether the design can represent the required case without changing the meaning of existing records. For AI projects, include the unit represented by each record and the relationships that support valid joins. These details help reviewers identify plausible-looking calculations that count the wrong thing or combine incompatible facts.

People also ask

Is a logical schema tied to one database vendor?

It is generally intended to describe structure independently of a particular product's physical implementation.

Does it contain the actual business records?

No. It describes the structure and rules under which those records are represented.

Does a schema diagram settle every business definition?

No. Terms and measures still need clear meaning, and some rules require accompanying documentation.

Check your understanding

How many learners were in the toy system?

Answer: Two.

How many enrollments?

Answer: Three.

Why was counting enrollments not the same as counting people?

Answer: L1 appeared in two enrollment relationships.

Why would allowing repeated attempts require a design review?

Answer: The original uniqueness rule deliberately prohibited that case.

Related terms

  • Physical schema
  • Entity-Relationship Model
  • Data Modeling
  • Cardinality (data modeling)
  • Conceptual schema
  • cardinality
  • database constraint

Learn next

Create a logical sketch for a small lending service with people, lendable copies and loans. Decide whether one title can have several copies and whether a copy can have overlapping active loans. Add sample records that test those rules. Then identify two physical implementation choices that could change without changing the meaning of a loan.

More in Data engineering and architecture

  • Log trigger - A log trigger is a database trigger used to record changes to a table in a separate log or history table.
  • Logical Data Model - A logical data model describes how information is organized into defined structures, attributes and relationships without specifying the detailed physical...
  • Logical Independence - Logical independence, in database architecture, is the ability to change the conceptual or logical schema without requiring corresponding changes to an...
  • Logico-linguistic modeling - Logico-linguistic modeling is an approach to knowledge elicitation and representation that extends soft systems modeling with explicit logical treatment of...
  • Long-lived transaction - A long-lived transaction is a transaction whose duration is substantial relative to the system's usual transactions.
  • Long-running transaction - A long-running transaction is an extended unit of work whose completion may span multiple steps, services or waiting periods.

Sources

IBM, What Is Data Modeling?: https://www.ibm.com/think/topics/data-modeling IBM documentation, Logical Data Models: https://www.ibm.com/docs/en/ida/9.1.1?topic=modeling-logical-data-models The enrolment calculation, library analogy and training-business case are original educational illustrations. The sources support the modeling-level distinction; the entry acknowledges differing modeling conventions and does not equate a logical schema with a product-specific namespace.

Previous: Logical omniscience Next: Logico-linguistic modeling

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer