diff --git a/02_activities/assignments/design_a_logical_model.md b/02_activities/assignments/design_a_logical_model.md index 14be2feb7..b95b35bfc 100644 --- a/02_activities/assignments/design_a_logical_model.md +++ b/02_activities/assignments/design_a_logical_model.md @@ -4,10 +4,12 @@ Create a logical model for a small bookstore. 📚 At the minimum it should have employee, order, sales, customer, and book entities (tables). Determine sensible column and table design based on what you know about these concepts. Keep it simple, but work out sensible relationships to keep tables reasonably sized. Include a date table. There are several tools online you can use, I'd recommend [_Draw.io_](https://www.drawio.com/) or [_LucidChart_](https://www.lucidchart.com/pages/). - +

**Solution:**
+ ![alt text](image.png) ## Question 2 We want to create employee shifts, splitting up the day into morning and evening. Add this to the ERD. - +

**Solution:**
+ ![alt text](image-2.png) ## Question 3 The store wants to keep customer addresses. Propose two architectures for the CUSTOMER_ADDRESS table, one that will retain changes, and another that will overwrite. Which is type 1, which is type 2? @@ -16,8 +18,8 @@ _Hint, search type 1 vs type 2 slowly changing dimensions._ Bonus: Are there privacy implications to this, why or why not? ``` Your answer... -``` - +

**Solution:**
+![alt text](image-3.png) ## Question 4 Review the AdventureWorks Schema [here](https://i.stack.imgur.com/LMu4W.gif) @@ -25,6 +27,9 @@ Highlight at least two differences between it and your ERD. Would you change any ``` Your answer... ``` +

**Solution:**
+1. The AdventureWorks Schema is more advanced and mor complicated and includes a lot of tables wmore sophisticated
+2. My ERD is very simple and do not cover many departments (production, HR, ...etc.)
# Criteria diff --git a/02_activities/assignments/image-1.png b/02_activities/assignments/image-1.png new file mode 100644 index 000000000..f202a95db Binary files /dev/null and b/02_activities/assignments/image-1.png differ diff --git a/02_activities/assignments/image-2.png b/02_activities/assignments/image-2.png new file mode 100644 index 000000000..b09054d26 Binary files /dev/null and b/02_activities/assignments/image-2.png differ diff --git a/02_activities/assignments/image-3.png b/02_activities/assignments/image-3.png new file mode 100644 index 000000000..dd7bd6fd7 Binary files /dev/null and b/02_activities/assignments/image-3.png differ diff --git a/02_activities/assignments/image.png b/02_activities/assignments/image.png new file mode 100644 index 000000000..f202a95db Binary files /dev/null and b/02_activities/assignments/image.png differ diff --git a/05_src/sql/farmersmarket.db b/05_src/sql/farmersmarket.db index 0552dfec1..b07906f92 100644 Binary files a/05_src/sql/farmersmarket.db and b/05_src/sql/farmersmarket.db differ diff --git a/05_src/sql/farmersmarket.db-journal b/05_src/sql/farmersmarket.db-journal new file mode 100644 index 000000000..ef68c32a7 Binary files /dev/null and b/05_src/sql/farmersmarket.db-journal differ