Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with the SQL queries to answer these questions: Part 1: Set up the environment which needed to run your queries. This environment includes

image text in transcribed

Need help with the SQL queries to answer these questions:image text in transcribed

Part 1: Set up the environment which needed to run your queries. This environment includes the employee schema and importing data to the schema. For this homework we are using an Employee sample database which you can find using below URL: https://dev.mysql.com/doc/employee/en/ Part 3 which is installation holds the path to GitHub which you can download all the required files. Please download an employee sample database from GitHub by using this URL: https://github.com/datacharmer/test_db After extracting the folder "test_db-master" open MySQL WorkBench and then File --> Open SQL Script and chose Employees.sql and run it. In the last part of the Employees.sql file where is has select and source it tries to upload the .dump file right after it creates the schema. If that part gives you an error first run from the beginning of the code up to line number 97 right before create view. After schema has been created you can go to Data Import/Restore and import all of dump file in test_db-master folder. After you created the schema and loaded with data you can start running the queries. 19) Who was the first person which has been employed with the company? 20) How many different job title do we have in this schema? 21) How many male employees do we have in the company? 22) What is the ratio of female employees' vs male employees in the company? 23) What is the ratio of salary of female / male in the company? Do we have equal pay in this company? 24) Who was the first department manager? 25) Is there any department which has more than one manager? 26) Is there any department which does not have any employee? 27) Is there any employee who does not work for any department

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

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago