Solved

Consider the Following Relational Schema

Question 2

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents