Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Specify the following views in MySQL on the COMPANY database schema shown in Figure 3.5: A view that has the department name, manager name, and

Specify the following views in MySQL on the COMPANY database schema shown in Figure 3.5:

A view that has the department name, manager name, and manager salary for every department.

A view that has the employee name, supervisor name and employee salary for each employee who works in the 'Research' department.

A view that has the project name, controlling department name, number of employees and total hours worked per week on the project for each project.

A view that has the project name, controlling deaprtment name, number of employees, and total hours worked per week on the project for each project with more than one employee working on it.

Figure 3.5 - Schema diagram for the COMPANY relational database schema

EMPLOYEE

Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno

DEPARTMENT

Dname Dnumber Mgr_ssn Mgr_start_date

DEPT_LOCATIONS

Dnumber Dlocation

PROJECT

Pname Pnumber Plocation Dnum

WORKS_ON

Essn Pno Hours

DEPENDENT

Essn Dependent_name Sex Bdate Relationship

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

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions