Solved

Consider the Following Relational Schema

Question 4

Essay

Consider the following relational schema:
Consider the following relational schema:     Formulate the following queries using SQL: (a)  (1) List all skills with a charge out rate greater than 60 per hour, in alphabetical order of description. (2) List all staff with the skill description 'Programmer' who work in the 'Special Projects' department. (3) For all projects that were active in July 1995, list the staff name, project number and the date and number of hours worked on the project, ordered by staff name, within staff name by the project number and within project number by date. (4) How many staff have the skill 'Programmer'? (5) List all projects that have at least two staff booking to it. (6) List the average charge out rate. (7) List all staff with a charge out rate greater than the average charge out rate. (b) Create a view of staff details giving the staff number, staff name, skill description, and department, but excluding the skill number and charge out rate.
Formulate the following queries using SQL:
(a)
(1) List all skills with a charge out rate greater than 60 per hour, in alphabetical order of description.
(2) List all staff with the skill description 'Programmer' who work in the 'Special Projects' department.
(3) For all projects that were active in July 1995, list the staff name, project number and the date and number of hours worked on the project, ordered by staff name, within staff name by the project number and within project number by date.
(4) How many staff have the skill 'Programmer'?
(5) List all projects that have at least two staff booking to it.
(6) List the average charge out rate.
(7) List all staff with a charge out rate greater than the average charge out rate.
(b) Create a view of staff details giving the staff number, staff name, skill description, and department, but excluding the skill number and charge out rate.

Correct Answer:

verifed

Verified

(a)
(1)SELECT *
FROM Skill
WHERE char...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions