Question: 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

 Need help with the SQL queries to answer these questions: Part

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

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. 11) Retrieve the information for the employees who make a salary of more than 30,000$, also works for department number 2 and have a manager name john? 12) Retrieve the information for the manager who make a salary of less or equal to 30,000$? 13) Please list the managers name who gets paid more than 50,000? 14) Please list the managers name who gets paid more than 50,000 and works for department number 2? 15) How many employee works for this company? 16) Retrieve the name (first name and last name) of employees and sort them base on their Salary descending. 17) Retrieve the name (first name and last name) of employees based on their department and sort them base on their Salary descending. 18) Who was the last person which has been employed with the company

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!