Skip to content
TaeyoungKim.dev

Data modeling vocabulary: Cardinality, keys, relations, and schemas

DB/SQLWritten 4 min readTaeyoungKim
LinkedInX

A relationship describes how entities connect; cardinality says how many instances may connect. Keys identify rows, while constraints limit valid data. Read these words as parts of a model rather than interchangeable names for a table.

Core words

The diagram groups relationships, keys, and schema concepts by the role each plays in structuring data.

English termMeaning and use
cardinalityThe number of instances of one entity that may be associated with an instance of another; often expressed as one-to-one or one-to-many.
RelationshipAn association between entities or their instances in a data model.
constraintA rule limiting allowable values or relationships, such as uniqueness or a foreign-key rule.
DFDData Flow Diagram: a visual model of how data moves between processes, stores, and external actors.
IdentifierAn attribute or attribute set used to distinguish one entity instance from another.
NULL valueA marker for missing or unknown data in SQL; it is not zero or an empty string.
Primary keyThe chosen column or column set intended to uniquely identify each row. SQL normally requires non-NULL key values, but SQLite has legacy exceptions for some primary-key declarations.
Foreign keyA column or column set whose values refer to a key in another table, subject to the defined referential rule.

Words to distinguish together

English termMeaning and use
Candidate keyA minimal attribute set capable of uniquely identifying a row; one candidate key may be selected as primary.
RelationA table-like set of tuples defined by attributes in the relational model.
TupleA row of values in a relation.
IntegrityThe correctness and consistency of stored data according to the model's rules.
System catalogDatabase metadata maintained by the DBMS about objects such as tables, columns, and indexes.
OptimizerThe DBMS component that chooses an execution plan for a query from possible alternatives.
SchemaThe defined structure and rules for database objects and their relationships.
ViewA named query presented as a table-like object; some DBMSs also support materialized views, which store results.

Words encountered in code and operations

English termMeaning and use
Inline viewA subquery used in the FROM clause and treated as a table expression for that query.
ClusterA physical organization that places related data near each other to improve certain access patterns; meaning varies by DBMS.
TransparencyIn a distributed database, hiding details such as data location, replication, or fragmentation from users.
FragmentA partition of data stored or managed separately in a distributed design.
AllocationThe choice of which site or server stores each fragment and whether it is replicated.
Broad dataA context-dependent business term for varied data sources beyond a narrow data set; check the author's definition before treating it as a formal DB concept.
Smart dataData selected and processed for a specific useful decision, emphasizing relevance and quality over raw volume.

Reading these terms in context

A primary key identifies a row in its own relation; a foreign key refers to a key in another relation. A candidate key can identify a row but is not necessarily the one selected as primary. Those distinctions matter when reviewing an ER model or a migration.

The relation stores tuples under a schema; its constraints and keys describe which rows are valid and how they connect.

Key takeaways

First identify the entity and relationship, then cardinality and keys, then constraints and schema. A view presents a query result, while an inline view is a subquery in FROM. Distributed fragments and allocation concern where data is placed, not what a primary key means.

Author

TaeyoungKim

Connecting technical foundations with implementation, verification, and production decisions.

#Data modeling#Database vocabulary#SQL#Schema

Read next