Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Suppose in relation schema R(acc,name.branch,sal,loc) has the following functional dependencies: [(6) {{acc,loc)-nameB loc-sal; acc--branch). Find out the candidate key(s) and super key(s) which

a. Suppose in relation schema R(acc,name.branch,sal,loc) has the following functional dependencies: [(6) {{acc,loc)-nameB loc-sal; acc--branch). Find out the candidate key(s) and super key(s) which are not candidate keys. b. Consider the following relations with their attributes: [6] EMPLOYEE(fname,Iname ssn sex,salary,super_ssn.dno,address,birth_date) PROJECT(Pname.Pnumber, Plocation,Dnum) WORKS ON(Essp.Pno. Hours) Draw the initial query tree for the following SQL query. Then apply heuristic query optimization on that initial query tree to find the final query tree (if any) that is efficient to execute. SELECT Pnumber, Fname, FROM PROJECT, WORKS ON, EMPLOYEE WHERE Pnumber = Pno AND Essn = Ssn AND Lname = 'Smith';

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Computer Engineering questions

Question

Which normal forms are concerned with functional dependencies?

Answered: 1 week ago

Question

14. State the all-or-none law.

Answered: 1 week ago