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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

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

Fraud examination

Authors: Steve Albrecht, Chad Albrecht, Conan Albrecht, Mark zimbelma

4th edition

538470844, 978-0538470841

Students also viewed these Mathematics questions

Question

LG4 Understand the different kinds of common stock values.

Answered: 1 week ago