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

Define tuple variable, Define tuple variable Tuple variable is a type o...

Define tuple variable Tuple variable is a type of variable whose domain is the set of all tuples.

Define the attribute inheritance, Define the Attribute Inheritance The ...

Define the Attribute Inheritance The attributes of a higher level entity set are inherited through a lower level entity set made by specialization-generalization hierarchy. Nam

Oracle, List and explain the memory constructs of the Oracle 12c databases?...

List and explain the memory constructs of the Oracle 12c databases?

Which data manipulation command combines the records, Which data manipulati...

Which data manipulation command combines the records from one or more tables ? JOIN data manipulation command combines the records from one or more tables.

Windows 8 Administrative Tools, Which two tools are used to administer user...

Which two tools are used to administer users for Active Directory?

Explain the structure of well formed formulae, Explain the structure of wel...

Explain the structure of well formed formulae in relational calculus. Ans: a. An atom is a formula b. If P1 is a formula, after that so are ¬P1 and (P1) c. If P1 and P2 a

Limitations of file based system, Limitations of File Based System The...

Limitations of File Based System The file-based system has some limitations. The limitations are listed as follows: Isolation and separation of data: When the data is

Microeconomic, anyone have a textbook solutions case fair, 8 edition of vo...

anyone have a textbook solutions case fair, 8 edition of vol 1 ?, please give me

Disadvantages or unsecure, In Database software have only pure security or ...

In Database software have only pure security or some dis secured by administrator?

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