Skip to content

Commit 3926446

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : 54083a9 Branch : main Author : James Foster <38274066+jd-foster@users.noreply.github.com> Time : 2026-04-30 01:51:14 +0000 Message : Discuss the meaning of "relational". (#367) * Discuss the concept of relational. * Move explanatory text outside definition. * Update to address comments
1 parent ab0f233 commit 3926446

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

00-sql-introduction.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ which is stored as one of its fields.
112112
Records may also contain keys that refer to records in other tables,
113113
which enables us to combine information from two or more sources.
114114

115-
116115
::::::::::::::::::::::::::::::::::::::::::::::::::
117116

117+
118118
## Databases
119119

120120
### Why use relational databases
@@ -125,8 +125,14 @@ Using a relational database serves several purposes.
125125
- This means there's no risk of accidentally changing data when you analyze it.
126126
- If we get new data we can rerun the query.
127127
- It's fast, even for large amounts of data.
128-
- It improves quality control of data entry (type constraints and use of forms in MS Access, Filemaker, Oracle Application Express etc.)
129-
- The concepts of relational database querying are core to understanding how to do similar things using programming languages such as R or Python.
128+
- It improves quality control of data entry.
129+
- Restrictions on what is valid data within a table can be enforced in different ways, such as
130+
the use of data types, cross-references and other relationships between tables.
131+
- The concepts used in querying relational databases help us understanding how to do similar things in other programming languages such as R or Python.
132+
133+
In many small datasets we have only a few tables and we don't have to think about too many cross-references, or *keys*, between tables.
134+
Shared keys between tables becomes increasingly important as the volume and complexity of data grows.
135+
One motivation for using relational databases is being able to organize data using keys that must consistently refer to other tables.
130136

131137
### Database Management Systems
132138

@@ -176,8 +182,8 @@ To summarize:
176182
- One field per type of information
177183
- No redundant information
178184
- Split into separate tables with one table per class of information
179-
- Needs an identifier in common between tables – shared column - to
180-
reconnect (known as a *foreign key*).
185+
- Needs an identifier in common between tables – a shared column - to
186+
reconnect the information (known as a *foreign key* constraint).
181187

182188
### Import
183189

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"NEWS.md" "84aa522251c8b0043f12e83af45cc3d8" "site/built/NEWS.md" "2023-04-21"
66
"config.yaml" "0928fbefeca4f51e54ccc3687a9565e9" "site/built/config.yaml" "2023-04-21"
77
"index.md" "cfdee7444b27a96171c25e1d4915e1e9" "site/built/index.md" "2023-06-07"
8-
"episodes/00-sql-introduction.md" "b1398eabd2773052d2a07bee7865dd5a" "site/built/00-sql-introduction.md" "2026-04-01"
8+
"episodes/00-sql-introduction.md" "817a0a6b0c770c1476206384717e78ac" "site/built/00-sql-introduction.md" "2026-04-30"
99
"episodes/01-sql-basic-queries.md" "256c3e6db6f844897ae9643129609c31" "site/built/01-sql-basic-queries.md" "2024-09-11"
1010
"episodes/02-sql-aggregation.md" "a96fd0f658c942678d1bf91848eb151c" "site/built/02-sql-aggregation.md" "2026-03-18"
1111
"episodes/03-sql-joins.md" "4dc3bf7005bec72c79e1a7663fdbcd2c" "site/built/03-sql-joins.md" "2026-03-18"

0 commit comments

Comments
 (0)