Answered step by step
Verified Expert Solution
Question
1 Approved Answer
## 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started