Question
BOOK: Database systems : a practical to design, implementation, and management, 6th EDITION . Case Study 2 for Exercises 6.32 - 6.40, use the
BOOK: "Database systems: a practical to design, implementation, and management", 6th EDITION.
Case Study 2
for Exercises 6.32 - 6.40, use the Projects schema defined in the Exercises at the end of Chapter 5.
QUESTIONS:
6.32 List all employees from BRICS countries in alphabetical order of surname.
6.33 List all details of employees born between1980-90
6.34 List all managers who are females in alphabetical order of surname, and then first name.
6.35 Remove all projects that are managed by the planning department.
6.36 Assume the planning department is going to be merged with the IT department. Update employee records that reflect the proposed change.
6.37 Using the UNION command, list all projects that are managed by the IT and the HR department.
6.38 Produce a report of the total hours worked by each female employee, arranged by department number and alphabetically by employee surname within each department.
6.39 Remove all projects from the database which had no employees worked.
6.40 List the total number of employees in each department for those departments with more than 10 employees. Create an appropriate heading for the columns of the results table.
THIS IS THE SCHEMA (PLEASE FOCUS ON JUST THE SCHEMA) THE QUESTIONS ABOVE ONLY SHOULD BE ANSWERED 6.32-6.40
B2.guestNo= B1.guestNo B2.dateFrom*B 1.dateFrom} Provide the equivalent domain relational calculus and relational algebra expressions for each of caculus expressions given in Exercise 5.10 2 Generate the relational algebra tuple relational calculus, and idomain relational calculus expressi ing queries (a) List all hotels (b) List all single rooms with a price below f(20 per night. (c) List the names and cities of all guests (d) List the price and type of all rooms atthe Grosvenor Hotel (e) List all guests currently staying at the Grosvenor Hotel. (0 List the details of all rooms at the Grosvenor Hotel. including the name of the guest staying i room is occupied. g) List the guest details (guestNo, guestName, and guestAddress) of all guests staying at the Gro .13 Using relational algebra, produce a report of all employees from the IT and planning departments after 1990. The following tables form part of a database held in an RDBMS: Employee (empNo. fName, IName, address, DOB, sex, position, deptNo) Department (deptNo, deptName, mgrEmpNo) Project (proiNo, projName, deptid WorksOn (empNo. proiNo, dateWotked, hoursWorked) where Employee contai ns employee details and empNo is the key Department contains department detail's and deptNo is the key mgrEmpNo ide employee who is the manager of the department There is only or each de contains details of the projects in each department and the key is p two departments can run the same project) contains details of the hours worked by employees on each project projNo/dateWorked form the key Project and worksOn : Formulate the following queries in relational algebra tuple relational calculus and domain relationsl 5.14 List all employees 5 15 List all the details of employees who are female and bom after 1990 5:16 List all employees who are not managers and are paid more than $150o
Step 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