@@ -68,14 +68,16 @@ Shown below are three tables from a relational database conceptual data model.
6868library(kableExtra)
6969library(purrr)
7070
71- dbTables <- vector("list", length = 3 )
71+ dbTables <- vector("list", length = 4 )
7272
73- names(dbTables) <- c("Employee ", "Company ", "Job")
73+ names(dbTables) <- c("Company ", "Position", "Employee ", "Job")
7474
75- dbTables[["Employee"]] <- data.frame(Employee = c("guid", "status", "state"))
76-
7775dbTables[["Company"]] <- data.frame(Company = c("guid", "name"))
7876
77+ dbTables[["Position"]] <- data.frame(Company = c("guid", "name", "status"))
78+
79+ dbTables[["Employee"]] <- data.frame(Employee = c("guid", "state", "status"))
80+
7981dbTables[["Job"]] <- data.frame(Job = c("guid", "company_guid", "position_guid", "employee_guid"))
8082
8183htmlTables <- dbTables %>%
@@ -89,12 +91,16 @@ htmlTables <- dbTables %>%
8991 )
9092 })
9193
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 "]])
9496knitr::raw_html("\n</div>\n")
9597
9698knitr::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"]])
98104knitr::raw_html("\n</div>\n")
99105
100106knitr::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
145151 ==========
146152 {'guid': '1c898066-858e-406c-a15d-36146c9642de', 'name': 'Paylocity', 'status': '2'}
147153 {'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'}
148161
149162------------------------------------------------------------------------
150163
@@ -163,13 +176,6 @@ A sample input file is provided for you. It can be downloaded directly from the
163176 {'guid': 'f73a2796-4579-4779-8345-f0dfcf7dd533', 'company_guid': '0090d7b0-b07a-47cd-b295-ff798a6c0613', 'employee_guid': '4e0c8c17-b031-4a72-b73d-f0a85570826d'}
164177 {'guid': '5ab54bb5-b72d-40f8-9a49-e0d2d004d7a9', 'company_guid': '0090d7b0-b07a-47cd-b295-ff798a6c0613', 'employee_guid': '259d5154-5f76-481b-b0f9-53e24c3b570e'}
165178
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-
173179------------------------------------------------------------------------
174180
175181Your code will be evaluated on the following elements, which will also form the basis for our questions.
0 commit comments