Use the relational algebra to formulate query, Database Management System

Assignment Help:

Consider the following database schema:

STAFF(StaffNo, fName, lName, Position, sex, dob, branchNo)
BRANCH(BranchNo, Street, City)

Assume the following for the above database:

- 10000 tuples in Staff; 500 tuples in Branch;
- 500 Managers ( one manager for each branch)
- 10 Paris branches;
- no indexes or sort keys;
- results of any intermediate operations stored on disk;
- cost of the final write is ignored;
- tuples are accessed one at a time.
- Main memory is large enough to process entire relations for each relational algebra operation.

Provide the following:

a) Express the following query in SQL:

" Find all Managers who work at a Paris branch".

b) Choose two possible methods to evaluate the query, and use the relational algebra to formulate clearly all the steps required in the
evaluation.

c) For each method, produce a query tree depicting all the steps.

d) Evaluate which of these two methods is more optimised based on disk accesses. Show your workings.


Related Discussions:- Use the relational algebra to formulate query

Data model, data models are being replaced over years. Reasons and why does...

data models are being replaced over years. Reasons and why does that happen?

Define deadlock term, a. Define the term "deadlock". There are four conditi...

a. Define the term "deadlock". There are four conditions that must hold before deadlock is possible. Name them. b. Outline an algorithm that detects whether there is a deadlock.

What are the parts of sql language, What are the parts of SQL language? ...

What are the parts of SQL language? The SQL language has various parts: data - definitition language  Data manipulation language  View definition  Transaction contr

#title., losers with new information systems

losers with new information systems

Design a gennalization and specialization hierarchy for an a, Design a genn...

Design a gennalization and specialization hierarchy for an automobile sales company

Explain transaction manager and their work, Explain Transaction manager and...

Explain Transaction manager and their work? Transaction Manager: Ensure the database remains in a constant (correct) state despite system failure, and in which concurrent trans

Stock market, need requirement analysis for database management of stock ma...

need requirement analysis for database management of stock market

Describe database state in details, Describe Database state in details? ...

Describe Database state in details? Database state: The actual data within the database at a particular moment in time is known as a database state.

Describe participation constraints, Describe Participation Constraints? ...

Describe Participation Constraints? Participation Constraints - The participation constraint exacts whether the existence of an entity depends on its being related to another

Explain the shadow paging recovery technique, Explain the shadow paging rec...

Explain the shadow paging recovery technique.  Ans: Shadow paging is a method used to acquire atomic and durable transactions, and provides the capability to manipulate pages i

Write Your Message!

Captcha
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