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

Database Management System, Assume that you are responsible for selecting a...

Assume that you are responsible for selecting a new DBMS product for Sohar Hospital

Explain the weak entity set, Explain the Weak Entity Set An Entity set...

Explain the Weak Entity Set An Entity set which does not have sufficient attribute to make a primay key is known as weak entity set. For instance, dependents of an employee in

Principles of good e-governance, Question: (a) e-Government implementa...

Question: (a) e-Government implementations normally evolve through a multi-stage process. Describe, using appropriate examples, the stages involved in an e-Government implemen

xml, basic structure of xm

basic structure of xml

Describe the objective of structural diagrams, Describe the objective of St...

Describe the objective of Structural Diagrams The main objective of structural diagram is to visualize, construct, specify and document static aspects of a system. Their eleme

Explain p command in the respect of qbe, Explain P command in the respect o...

Explain P command in the respect of QBE? P: It is the command in which is used to print (logically display) the value of the attribute in whose cell it is writ

What do you mean by an execution plan, What do you mean by an execution pla...

What do you mean by an execution plan? Why is it used? How will you view it? a.) An execution plan can be known as a road map which textually or graphically illustrates the dat

What is the candidate key for a table with columns, For problems 1-4, give ...

For problems 1-4, give all candidate keys for the tables with FDs specified.  Composite candidate keys must be put in parentheses, and candidate keys must be separated with commas

Define rotational latency time, Define rotational latency time. The ti...

Define rotational latency time. The time spent waiting for the sector to be accessed to appear under the head is known as the rotational latency time.

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