Question: ## Establishing a connection We use the packages `DBI` and `RMariaDB` to connect to the *employees* database: ```{r} con
## Establishing a connection
We use the packages `DBI` and `RMariaDB` to connect to the *employees* database:
```{r} con <- DBI::dbConnect(RMariaDB::MariaDB(), host = "localhost",dbname="employees", user = "compstats", password = "ulpine5nematode" ) ```
Find the highest paid male and female employees in each department. First, using SQL:
```{sql, connection=con,echo=TRUE}
-- YOUR SQL CODE HERE
```
Answer now the same question, but using `dbplyr`
```{r}
# YOUR R dbplyr CODE HERE
```
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
