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. 28) Is there any employee who does not have a manager? 29) How many employee works for department number 2? 30) What are the department names? 31) Who is the youngest employee of the company? 32) Who is the oldest employee of the company? 33) Add an attribute name SSN to the table employee. 34) Steve Smith with birthday of 01/01/1980 just got hired. Please add him to the employee table. 35) Which department has the highest number of employees? 36) Which department has the least number of employees

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

What are the steps in the T&D process?

Answered: 1 week ago