@@ -68,14 +68,16 @@ Shown below are three tables from a relational database conceptual data model.
68
68
library(kableExtra)
69
69
library(purrr)
70
70
71
- dbTables <- vector("list", length = 3 )
71
+ dbTables <- vector("list", length = 4 )
72
72
73
- names(dbTables) <- c("Employee ", "Company ", "Job")
73
+ names(dbTables) <- c("Company ", "Position", "Employee ", "Job")
74
74
75
- dbTables[["Employee"]] <- data.frame(Employee = c("guid", "status", "state"))
76
-
77
75
dbTables[["Company"]] <- data.frame(Company = c("guid", "name"))
78
76
77
+ dbTables[["Position"]] <- data.frame(Company = c("guid", "name", "status"))
78
+
79
+ dbTables[["Employee"]] <- data.frame(Employee = c("guid", "state", "status"))
80
+
79
81
dbTables[["Job"]] <- data.frame(Job = c("guid", "company_guid", "position_guid", "employee_guid"))
80
82
81
83
htmlTables <- dbTables %>%
@@ -89,12 +91,16 @@ htmlTables <- dbTables %>%
89
91
)
90
92
})
91
93
92
- knitr::raw_html("<div style='float: left; margin-right: 1em;'>\n")
93
- knitr::raw_html(htmlTables[["Employee "]])
94
+ knitr::raw_html("<div style='float: left; margin: 0 1em 0 1em;'>\n")
95
+ knitr::raw_html(htmlTables[["Company "]])
94
96
knitr::raw_html("\n</div>\n")
95
97
96
98
knitr::raw_html("<div style='float: left; margin: 0 1em 0 1em;'>\n")
97
- knitr::raw_html(htmlTables[["Company"]])
99
+ knitr::raw_html(htmlTables[["Position"]])
100
+ knitr::raw_html("\n</div>\n")
101
+
102
+ knitr::raw_html("<div style='float: left; margin-right: 1em;'>\n")
103
+ knitr::raw_html(htmlTables[["Employee"]])
98
104
knitr::raw_html("\n</div>\n")
99
105
100
106
knitr::raw_html("<div style='float: left; margin: 0 1em 0 1em;'>\n")
@@ -145,6 +151,13 @@ A sample input file is provided for you. It can be downloaded directly from the
145
151
==========
146
152
{'guid': '1c898066-858e-406c-a15d-36146c9642de', 'name': 'Paylocity', 'status': '2'}
147
153
{'guid': '0090d7b0-b07a-47cd-b295-ff798a6c0613', 'name': 'Burrito Shack', 'status': '2'}
154
+
155
+ ------------------------------------------------------------------------
156
+
157
+ Position
158
+ ==========
159
+ {'guid': '40a36493-f450-4331-874c-5ef01aabe1d5', 'name': 'Software Engineer', 'status': '1'}
160
+ {'guid': 'f9b3ee71-7fb2-4dd5-9c13-b4c10d11fde7', 'name': 'Data Engineer', 'status': '1'}
148
161
149
162
------------------------------------------------------------------------
150
163
@@ -163,13 +176,6 @@ A sample input file is provided for you. It can be downloaded directly from the
163
176
{'guid': 'f73a2796-4579-4779-8345-f0dfcf7dd533', 'company_guid': '0090d7b0-b07a-47cd-b295-ff798a6c0613', 'employee_guid': '4e0c8c17-b031-4a72-b73d-f0a85570826d'}
164
177
{'guid': '5ab54bb5-b72d-40f8-9a49-e0d2d004d7a9', 'company_guid': '0090d7b0-b07a-47cd-b295-ff798a6c0613', 'employee_guid': '259d5154-5f76-481b-b0f9-53e24c3b570e'}
165
178
166
- ------------------------------------------------------------------------
167
-
168
- Position
169
- ==========
170
- {'guid': '40a36493-f450-4331-874c-5ef01aabe1d5', 'name': 'Software Engineer', 'status': '1'}
171
- {'guid': 'f9b3ee71-7fb2-4dd5-9c13-b4c10d11fde7', 'name': 'Data Engineer', 'status': '1'}
172
-
173
179
------------------------------------------------------------------------
174
180
175
181
Your code will be evaluated on the following elements, which will also form the basis for our questions.
0 commit comments