Skip to content

Commit

Permalink
fix ERD figure
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri-yatsenko committed Aug 26, 2024
1 parent 39f7153 commit 3c85c47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions book/02-concepts/01-relational.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,20 @@ Although the ERM is best known for its approach to schema design, it also plays

ERM diagrams have become an essential tool for database designers, enabling clear communication between designers, clients, and management. By providing a structured, visual approach to database design, the ERM has made it easier to build databases that are both effective and easy to understand.

```{figure} images/employee-project-erd.svg
```{figure} ../images/employee-project-erd.svg
Entity-relationship diagram in Chen ER notation.
```

:::{figure}
```{mermaid}
---
title: Enhanced Entity Relationship Diagram
title: Crow's Foot notation.
---
erDiagram
EMPLOYEE ||--o{ EMP-PROJ : works-for
PROJECT ||--o{ EMP-PROJ : is-run-by
```
Entity-relationship diagram in Chen ER notation.
Entity-relationship diagram using Crow's foot notation.
:::


Expand Down Expand Up @@ -256,3 +256,5 @@ How would the cardinality (number of elements) change in the result?

4. Work through the example of a database model in Chen's EM notation in @10.1093/jamia/ocx033.
What are its entities and relationships? Explain what operations this database supports.

5. Learn to draw diagrams in Crow's foot notation using Mermaid: https://mermaid.js.org/syntax/entityRelationshipDiagram.html

0 comments on commit 3c85c47

Please sign in to comment.