Skip to content

Commit 0587333

Browse files
Add a proper ERD figure and remove dynamically generated html tables
1 parent 0740fe9 commit 0587333

File tree

2 files changed

+24
-95
lines changed

2 files changed

+24
-95
lines changed

README.md

Lines changed: 8 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div style="font-size: 1em;">
22

3-
Last updated on 2021-12-08 21:50:22
3+
Last updated on 2021-12-08 22:02:40
44

55
</div>
66

@@ -51,103 +51,18 @@ code and show it running on their machine.
5151

5252
## 1.2 MULTI-PART SQL EXERCISE: LIVE WALK-THROUGH
5353

54-
Depicted here are four tables from a relational database conceptual data
55-
model.
56-
57-
<div style='float: left; margin: 0 1em 0 1em;'>
58-
59-
<table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="width: auto !important; margin-left: auto; margin-right: auto;">
60-
<thead>
61-
<tr>
62-
<th style="text-align:left;color: white !important;background-color: gray !important;font-size: 20px;"> Company </th>
63-
</tr>
64-
</thead>
65-
<tbody>
66-
<tr>
67-
<td style="text-align:left;width: 15em; "> guid </td>
68-
</tr>
69-
<tr>
70-
<td style="text-align:left;width: 15em; "> name </td>
71-
</tr>
72-
<tr>
73-
<td style="text-align:left;width: 15em; "> status </td>
74-
</tr>
75-
</tbody>
76-
</table>
54+
The following figure shows an *entity relationship diagram* (ERD) for a
55+
conceptual data model containing 4 tables.
7756

78-
</div>
79-
80-
<div style='float: left; margin: 0 1em 0 1em;'>
81-
82-
<table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="width: auto !important; margin-left: auto; margin-right: auto;">
83-
<thead>
84-
<tr>
85-
<th style="text-align:left;color: white !important;background-color: gray !important;font-size: 20px;"> Position </th>
86-
</tr>
87-
</thead>
88-
<tbody>
89-
<tr>
90-
<td style="text-align:left;width: 15em; "> guid </td>
91-
</tr>
92-
<tr>
93-
<td style="text-align:left;width: 15em; "> name </td>
94-
</tr>
95-
<tr>
96-
<td style="text-align:left;width: 15em; "> status </td>
97-
</tr>
98-
</tbody>
99-
</table>
100-
101-
</div>
57+
1. Company
10258

103-
<div style='float: left; margin-right: 1em;'>
104-
105-
<table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="width: auto !important; margin-left: auto; margin-right: auto;">
106-
<thead>
107-
<tr>
108-
<th style="text-align:left;color: white !important;background-color: gray !important;font-size: 20px;"> Employee </th>
109-
</tr>
110-
</thead>
111-
<tbody>
112-
<tr>
113-
<td style="text-align:left;width: 15em; "> guid </td>
114-
</tr>
115-
<tr>
116-
<td style="text-align:left;width: 15em; "> state </td>
117-
</tr>
118-
<tr>
119-
<td style="text-align:left;width: 15em; "> status </td>
120-
</tr>
121-
</tbody>
122-
</table>
59+
2. Position
12360

124-
</div>
61+
3. Employee
12562

126-
<div style='float: left; margin: 0 1em 0 1em;'>
127-
128-
<table class="table table-bordered table-striped table-hover table-condensed table-responsive" style="width: auto !important; margin-left: auto; margin-right: auto;">
129-
<thead>
130-
<tr>
131-
<th style="text-align:left;color: white !important;background-color: gray !important;font-size: 20px;"> Job </th>
132-
</tr>
133-
</thead>
134-
<tbody>
135-
<tr>
136-
<td style="text-align:left;width: 15em; "> guid </td>
137-
</tr>
138-
<tr>
139-
<td style="text-align:left;width: 15em; "> company_guid </td>
140-
</tr>
141-
<tr>
142-
<td style="text-align:left;width: 15em; "> position_guid </td>
143-
</tr>
144-
<tr>
145-
<td style="text-align:left;width: 15em; "> employee_guid </td>
146-
</tr>
147-
</tbody>
148-
</table>
63+
4. Job
14964

150-
</div>
65+
![](D:/GoogleDrive/eric.milgram/Career/Job%20Prospects/2021-11-09%20Paylocity/020%20Paylocity%20Coding%20Challenge/Paylocity%20Coding%20Challenge/./img/Figure%20200-030%20-%20DB%20ERD%20-%20Company%20-%20Position%20-%20Employee%20-%20Job%201000x800.png)
15166

15267
<div style="clear: both;">
15368

code/RMarkdown/README.Rmd

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ output:
1717
---
1818

1919
```{r setup, include=FALSE}
20+
library(here)
21+
2022
knitr::opts_chunk$set(echo = FALSE, include = TRUE, results = "hold", message = FALSE)
2123
```
2224

@@ -62,9 +64,21 @@ The expectation is that the candidate will complete the `Python` exercise ahead
6264

6365
## MULTI-PART SQL EXERCISE: LIVE WALK-THROUGH
6466

65-
Depicted here are four tables from a relational database conceptual data model.
67+
The following figure shows an *entity relationship diagram* (ERD) for a conceptual
68+
data model containing 4 tables.
69+
70+
1. Company
71+
72+
1. Position
73+
74+
1. Employee
75+
76+
1. Job
77+
78+
![](`r here("./img/Figure 200-030 - DB ERD - Company - Position - Employee - Job 1000x800.png")`)
79+
6680

67-
```{r TableSet1}
81+
```{r TableSet1, eval = FALSE}
6882
library(kableExtra)
6983
library(purrr)
7084

0 commit comments

Comments
 (0)