Relational algebra tree for queries

Assignment Help Computer Engineering
Reference no: EM1316946

By utilizign the Hotel database schema:

Hotel (hotelNo, name, address)
Room (roomNo, hotelNo, type, price)
Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo)

Where,

a) Hotel contains hotel details and hotelNo is the Primary Key (PK).
b) Room consists of room details for each hotel and hotelNo, roomNo, forms the PK.
c) Booking consists of details of the bookings and guestNo, HotelNo and dateFrom forms the PK.

Based upon the schema, a query for choosing the room number, room type and room price for

EDC Hotel and the room price must RM150 and above are described:
SELECT r.roomNo, r.type, r.price
FROM Room r, Booking b, Hotel h
WHERE r.roomNo = b.roomNo AND b.hotelNo = h.hotelNo and h.hotelName = ‘EDC Hotel’ AND r.price > 150;

1) Sketch a relational algebra tree (RAT) for each of queries and use the heuristic rules to convert the queries into a more efficient form. Describe each step and state any transformation rules utilized in the process.

Reference no: EM1316946

Questions Cloud

Describing the penetration test : By using the MS Word, write down the three-page summary explaining a successful penetration test. Which penetration tools and techniques do you think would be required in the successful penetration test.
Prepare the molecular formula for given compounds : Prepare the molecular formula for given compounds and determine the amount of molecules present and write the molecular formula and determine how many grams of each you have
Creating confidence interval for mean score of exam : Create a 90% confidence interval for mean score on this placement exam for all students.
Optimum level of consumption and budget allocation : Optimal consumption. The following Table describes the demand for tickets to the opera, during the two=-week season.
Relational algebra tree for queries : Sketch a relational algebra tree (RAT) for each of queries and use the heuristic rules to convert the queries into a more efficient form. Describe each step and state any transformation rules utilized in the process.
Depends on the satellite informationwhat is the expected no : Depends on the satellite information illustrate what is the expected number µ of real forest fires on the Seward Peninsula.
Calculating the margin of error : Constructing a 95% confidence interval for the true length of time for all pepper seeds to germinate you must calculate the margin of error. The margin of error in this case is 0.60.
Value of the chi-square statistic and test : Calculate the value of the chi-square statistic and test whether all regions are statistically the same at 5% and 1% level tests.
Evaluate the molecular weight of the reactants : Write balanced chemical equation and evaluate the molecular weight of the reactants and Calculate the molecular weights of the reactant.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd