Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Business Mathematics With Canadian Applications

Authors: Ali R. Hassanlou, S. A. Hummelbrunner, Kelly Halliday

12th Edition

0135285011, 978-0135285015

More Books

Students also viewed these Mathematics questions

Question

discuss the models practical implications for job (re)design.

Answered: 1 week ago