Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions 02_activities/assignments/design_a_logical_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).

<br><br>**Solution:** <br>
![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.

<br><br>**Solution:** <br>
![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?

Expand All @@ -16,15 +18,18 @@ _Hint, search type 1 vs type 2 slowly changing dimensions._
Bonus: Are there privacy implications to this, why or why not?
```
Your answer...
```

<br><br> **Solution:** <br>
![alt text](image-3.png)
## Question 4
Review the AdventureWorks Schema [here](https://i.stack.imgur.com/LMu4W.gif)

Highlight at least two differences between it and your ERD. Would you change anything in yours?
```
Your answer...
```
<br><br> **Solution:** <br>
1. The AdventureWorks Schema is more advanced and mor complicated and includes a lot of tables wmore sophisticated <br>
2. My ERD is very simple and do not cover many departments (production, HR, ...etc.) <br>

# Criteria

Expand Down
Binary file added 02_activities/assignments/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 02_activities/assignments/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 02_activities/assignments/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 02_activities/assignments/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 05_src/sql/farmersmarket.db
Binary file not shown.
Binary file added 05_src/sql/farmersmarket.db-journal
Binary file not shown.