a. Retrieve the names and major departments of all straight-A students (students who have a grade of A in all their courses).
b. Retrieve the names and major departments of all students who do not have a grade of A in any of their courses.
a. Retrieve the names of all employees who work in the department that has the employee with the highest salary among all employees.
b. Retrieve the names of all employees whose supervisor’s supervisor has ‘888665555’ for Ssn.
c. Retrieve the names of employees who make at least $10,000 more than the employee who is paid the least in the company.
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.
a.
接受,輸出為
D | C | Total_s | Average_s |
---|---|---|---|
1 | 1 | 55000 | 5500 |
4 | 3 | 93000 | 64333.33 |
5 | 4 | 133000 | 33250 |
b.
接受,輸出為
D | C |
---|---|
5 | 4 |
c.
接受,但是輸出內容沒有任何 Tuple
D | Average_s |
---|
d.
拒絕,DEPARTMENT.Dnumber
會發生重複。
e.
刪除不存在的資料我不確定會接受還是拒絕,我猜測是可以執行,但是沒有任何結果。
1112_courses
database