1. Homepage
  2. Homework
  3. 351/751 Database Systems Lab 05: THE RELATIONAL ALGEBRA
This question has been solved

351/751 Database Systems Lab 05: THE RELATIONAL ALGEBRA

Engage in a Conversation
New ZealandUniversity of AucklandCOMPSCI351COMPSCI751Fundamentals of Database SystemsRELATIONAL ALGEBRASQL

Databases 351/751 Lab 5 in Week 7 2023 1 CourseNana.COM

15 marks in total = 1 .5% of the final grade including attendance, see below CourseNana.COM

THE RELATIONAL ALGEBRA CourseNana.COM

  1. Specify the following queries on the COMPANY relational database schema and its data state shown below in the form of relational algebra expressions (i.e. using relational algebra operations, such as ‘ σ’, ‘π’, ‘ρ’, set operations, ‘X’, ‘ ⋈’, ‘*’, ‘ℑ’ of aggregate functions, etc.). And show the result of each query as it would apply to the following sample database state.

(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the ' ProductX' project. [2 marks] CourseNana.COM

(b) For each project, list the project name and the total hours per week (by all employees) spent on that project. [2 marks] CourseNana.COM

(c) For each department, retrieve the department name, and the average salary of employees working in that department. [2 mark s] CourseNana.COM

(d) List the last names of department managers who have no dependents. [3 mark s] CourseNana.COM

FUNCTIONAL DEPENDENCIES AND NORMALIZATION CourseNana.COM

  1. Consider the following relations for an order -processing application database at ABC, Inc.

ORDER ( Order_no , Odate, Cust _no, Total_amount) ORDER -ITEM ( Order_no , Item_no , Qty_ordered, Total_price, Discount) CourseNana.COM

Assume that each item has a different discount. The Total_price refers to one item, Odate is the date on which the order was placed, and the Total_amount is the amount of the order. If we apply a natural join on the relations Order -Item and Order in this d atabase, what does the resulting relation schema look like? What will be its key? Show the FDs in this resulting relation. Is it in 2NF? Is it in 3NF? Why or why not? (State any assumptions you make.) [3 mark s] CourseNana.COM

THIS LAB HAS AN ATTENDANCE COMPONENT OF [3 MARKS ] CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
New Zealand代写,University of Auckland代写,COMPSCI351代写,COMPSCI751代写,Fundamentals of Database Systems代写,RELATIONAL ALGEBRA代写,SQL代写,New Zealand代编,University of Auckland代编,COMPSCI351代编,COMPSCI751代编,Fundamentals of Database Systems代编,RELATIONAL ALGEBRA代编,SQL代编,New Zealand代考,University of Auckland代考,COMPSCI351代考,COMPSCI751代考,Fundamentals of Database Systems代考,RELATIONAL ALGEBRA代考,SQL代考,New Zealandhelp,University of Aucklandhelp,COMPSCI351help,COMPSCI751help,Fundamentals of Database Systemshelp,RELATIONAL ALGEBRAhelp,SQLhelp,New Zealand作业代写,University of Auckland作业代写,COMPSCI351作业代写,COMPSCI751作业代写,Fundamentals of Database Systems作业代写,RELATIONAL ALGEBRA作业代写,SQL作业代写,New Zealand编程代写,University of Auckland编程代写,COMPSCI351编程代写,COMPSCI751编程代写,Fundamentals of Database Systems编程代写,RELATIONAL ALGEBRA编程代写,SQL编程代写,New Zealandprogramming help,University of Aucklandprogramming help,COMPSCI351programming help,COMPSCI751programming help,Fundamentals of Database Systemsprogramming help,RELATIONAL ALGEBRAprogramming help,SQLprogramming help,New Zealandassignment help,University of Aucklandassignment help,COMPSCI351assignment help,COMPSCI751assignment help,Fundamentals of Database Systemsassignment help,RELATIONAL ALGEBRAassignment help,SQLassignment help,New Zealandsolution,University of Aucklandsolution,COMPSCI351solution,COMPSCI751solution,Fundamentals of Database Systemssolution,RELATIONAL ALGEBRAsolution,SQLsolution,