Question
Specify the following views in SQL on the COMPANY database schema shown in Figure 5.5. a. A view that has the department name, manager name,
Specify the following views in SQL on the COMPANY database schema shown in Figure 5.5.
a. A view that has the department name, manager name, and manager salary for every department.
b. A view that has the employee name, supervisor name, and employee salary for each employee who works in the 'Research' department.
c. 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.
d. 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 with more than one employee working on it.
*****This is exercise 7.8 from textbook "Fundamentals of Database Systems 7th Edition" by Elmasri and Navathe*****
EMPLOYEE Fname Minit Lname Sen Bdate Address Sex Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr_start_ date DEPT LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber PlocationDnum WORKS ON Essn Pno Hours Figure 5.5 Schema diagram for the COMPANY relational database schema. DEPENDENT Essn Dependent name SexBdate RelationshipStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started