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

  Asynchronous sequential logic circuit

An asynchronous sequential logic circuit

  Explain fast process of distributing the cards to accountant

Explain fast process of distributing the cards to accountant.

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  How to explain capacity of the queue

How to explain capacity of the queue

  Securing the company website

A local business is about to launch the website in order to boost the business. The website will also consist of the information related to the company and all products that are available.

  Make an assignment to read rfc

Make an assignment to read RFC

  Visual logic

Consider that you are working with “Visual Logic”. Develop the logic for a program which enables a user to enter the 10 numbers, and then display them in reverse order of their entry.

  How many tasks real-time application contain

How many tasks real-time application contain In this particular real-time application, there are many tasks; each runs exact same code except with different data each time.

  Problems on b tree

Problems on B tree

  Four methods to provide data backup

What are the four methods used by the servers in order to provide the data backup, decrease the response time, and decrease the network and the server access time?

  Write down a java program, which build a binary tree

Write down a java program, which build a binary tree

  Produce a book class that stores book information

Produce a Book class that stores book information

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