Skip to content

Commit 28a9345

Browse files
committed
differences for PR #386
1 parent bfd4b96 commit 28a9345

2 files changed

Lines changed: 31 additions & 17 deletions

File tree

00-sql-introduction.md

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -198,31 +198,45 @@ follow these instructions:
198198
7. Press **OK**, you should subsequently get a message that the table was imported.
199199
8. Back on the Database Structure tab, you should now see the table listed. Right click on the table name and choose **Modify Table**, or click on the **Modify Table** button just under the tabs and above the table list.
200200
9. Click **Save** if asked to save all pending changes.
201-
10. In the center panel of the window that appears, set the data types for each field using the suggestions in the table below (this includes fields from the `plots` and `species` tables also).
201+
10. In the center panel of the window that appears, set the data types for each field using the suggestions in the table below.
202202
11. Finally, click **OK** one more time to confirm the operation. Then click the **Write Changes** button to save the database.
203203

204-
| Field | Data Type | Motivation | Table(s) |
205-
| ----------------------------------------------------- | :----------------------- | ----------------------------------------------------------------------- | ---------------- |
206-
| day | INTEGER | Having data as numeric allows for meaningful arithmetic and comparisons | surveys |
207-
| genus | TEXT | Field contains text data | species |
208-
| hindfoot\_length | REAL | Field contains measured numeric data | surveys |
209-
| month | INTEGER | Having data as numeric allows for meaningful arithmetic and comparisons | surveys |
210-
| plot\_id | INTEGER | Field contains numeric data | plots, surveys |
211-
| plot\_type | TEXT | Field contains text data | plots |
212-
| record\_id | INTEGER | Field contains numeric data | surveys |
213-
| sex | TEXT | Field contains text data | surveys |
214-
| species\_id | TEXT | Field contains text data | species, surveys |
215-
| species | TEXT | Field contains text data | species |
216-
| taxa | TEXT | Field contains text data | species |
217-
| weight | REAL | Field contains measured numerical data | surveys |
218-
| year | INTEGER | Allows for meaningful arithmetic and comparisons | surveys |
204+
#### surveys
205+
206+
| Field | Data Type | Motivation | Also in |
207+
| --- | :--- | --- | ---------------- |
208+
| record\_id | INTEGER | Field contains numeric data | |
209+
| month | INTEGER | Allows for meaningful arithmetic and comparisons | |
210+
| day | INTEGER | Allows for meaningful arithmetic and comparisons | |
211+
| year | INTEGER | Allows for meaningful arithmetic and comparisons | |
212+
| plot\_id | INTEGER | Field contains numeric data | plots |
213+
| species\_id | TEXT | Field contains text data | species |
214+
| sex | TEXT | Field contains text data | |
215+
| hindfoot\_length | REAL | Field contains measured numeric data | |
216+
| weight | REAL | Field contains measured numerical data | |
219217

220218
::::::::::::::::::::::::::::::::::::::: challenge
221219

222220
### Challenge
223221

224222
- Import the `plots` and `species` tables
225223

224+
#### plots
225+
226+
| Field | Data Type | Motivation | Also in |
227+
| --- | :--- | --- | ---------------- |
228+
| plot\_id | INTEGER | Field contains numeric data | surveys |
229+
| plot\_type | TEXT | Field contains text data | |
230+
231+
#### species
232+
233+
| Field | Data Type | Motivation | Also in |
234+
| --- | :--- | --- | ---------------- |
235+
| species\_id | TEXT | Field contains text data | surveys |
236+
| genus | TEXT | Field contains text data | |
237+
| species | TEXT | Field contains text data | |
238+
| taxa | TEXT | Field contains text data | |
239+
226240

227241
::::::::::::::::::::::::::::::::::::::::::::::::::
228242

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" "0fd75012237675c81afcfb7c031f3c2b" "site/built/00-sql-introduction.md" "2026-03-27"
8+
"episodes/00-sql-introduction.md" "fd2342d95827232811d5da2beb71098c" "site/built/00-sql-introduction.md" "2026-03-31"
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)