Essay
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.
Correct Answer:

Verified
(a)
(1)SELECT *
FROM Skill
WHERE char...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
(1)SELECT *
FROM Skill
WHERE char...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q1: What are the main advantages and disadvantages
Q2: What is a sequence? Write an SQL
Q3: The following tables form part of a
Q5: Assuming that a single-row form is
Q6: (a) In PL/SQL what is a Cursor?
Q7: The relational schema shown below is part
Q8: (a)SQL*Plus environment variables are set to
Q9: (a) What is a 'table' and what
Q10: Oracle database consists of logical and physical
Q11: A relational database contains details about journeys