Skip to content

Commit 0829fdd

Browse files
fix figure
1 parent 5aa43af commit 0829fdd

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

book/20-concepts/03-workflows.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
## A New Paradigm for Relational Databases
44

5-
The relational data model, while powerful, offers considerable semantic flexibility that can be both a blessing and a curse. This flexibility has led to the development of distinct conceptual frameworks for understanding and applying relational principles in database design and operations. While these approaches share common underlying constructs (tables, data types, primary keys, foreign keys, etc.), they operate on fundamentally different semantics that lead to distinct approaches to database design, data manipulation, and query formation.
65

7-
This book introduces a paradigm shift in how we think about relational database design and implementation: the **Relational Workflow Model**. This model is embodied by DataJoint and affects how we think about database design, data manipulation, and query formation.
6+
This book introduces a paradigm shift in how we think about relational database design and implementation: the **Relational Workflow Model**. This model is embodied by DataJoint and affects how we think about database design, data manipulation, and query formation. The key insight of the Relational Workflow Model is that the database schema itself becomes an executable specification of your workflow. In this chapter, we introduce key concepts of relational workflows and contrast this model with traditional apporaches to database modeling and implementation.
87

9-
To understand the significance of the Relational Workflow Model, we must first examine the two dominant paradigms that preceded it and their inherent limitations.
8+
The relational data model, while powerful, offers considerable semantic flexibility that can be both a blessing and a curse. This flexibility has led to the development of distinct conceptual frameworks for understanding and applying relational principles in database design and operations. While these approaches share common underlying constructs (tables, data types, primary keys, foreign keys, etc.), they operate on fundamentally different semantics that lead to distinct approaches to database design, data manipulation, and query formation.
109

1110
## The Mathematical Foundation: Codd's Predicate Calculus Approach
1211

@@ -71,6 +70,21 @@ erDiagram
7170
Entity-relationship diagram in [Crow's Foot notation](https://mermaid.js.org/syntax/entityRelationshipDiagram.html).
7271
:::
7372

73+
Or using an explicit association table:
74+
:::{figure}
75+
:align: center
76+
```{mermaid}
77+
---
78+
title: Crow's Foot notation.
79+
---
80+
erDiagram
81+
EMPLOYEE ||--o{ ASSIGNMENT : works-on
82+
ASSIGNMENT }o--|| PROJECT : assigned-to
83+
```
84+
Equivalent ERD with an explicit association entity (ASSIGNMENT).
85+
:::
86+
87+
7488
### Limitations
7589

7690
Despite its success, ERM still suffers from fundamental gaps:

0 commit comments

Comments
 (0)