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...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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'; 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';
Expert Answer:
Related Book For
Database Processing Fundamentals, Design, and Implementation
ISBN: 978-0133876703
14th edition
Authors: David M. Kroenke, David J. Auer
Posted Date:
Students also viewed these computer engineering questions
-
Consider the relation: PERSON (Name, Sibling, ShoeSize) Assume the following functional dependencies exist: Name Sibling Name ShoeSize Describe deletion, modification, and insertion anomalies for...
-
Consider the following relations with their attributes: EMPLOYEE(fname,Iname.ssn.sex,salary,super_ssn.dno,address,birth_date) DEPENDENT(essn.dependent name,sex, relationship,birth_date)...
-
Consider a relation R that has three attributes ABC. It is decomposed into relations R1 with attributes AB and R2 with attributes BC. 1. State the definition of a lossless-join decomposition with...
-
At December 31, 2010, Cafu Co. reported the following information on its statement on financial position. Accounts receivable...............R$960,000 Less: Allowance for doubtful accounts............
-
The size of the left upper chamber of the heart is one measure of cardiovascular health. When the upper left chamber is enlarged, the risk of heart problems is increased. The paper Left Atrial Size...
-
Using the data in Exercise 6-7, assume that the allowance for doubtful accounts for Easy Rider International had a negative balance of $(13,300) as of December 31, 20Y3. In Exercise 6-7 Easy Rider...
-
Radon is a radioactive gas produced by natural processes (the decay of uranium) in the ground. The gas can leach into buildings through the foundation and can accumulate to relatively high...
-
Furr Fabricators produces protective covers for smart phones. Since the covers must be customized to each smart phone model, Furr uses ajob order costing system. On September 1, the company reported...
-
You are a partner in a small accounting firm. Your client, Winsome Walsh, has sought your advice on starting two new businesses. One business she will start alone, and the other she will start with...
-
Bob and Melissa Grant are married and live in Lexington, Kentucky. The Grants have 17-year old twin daughters. The Grants would like to file a joint tax return for the year. The following information...
-
A company decides to borrow $100 000 at j1 = 12% in order to finance a new equipment purchase. One of the conditions of the loan is that the company must make annual payments into a sinking fund (the...
-
ABZ constructed a new subdivision during 2020 and 2021 under contract with Cactus Development Co. Relevant data are summarized below: Contract amount $ 3,000,000 Cost: 2020 1,200,000 2021 600,000...
-
Fred works and lives in San Francisco. One day, Fred flew from San Francisco to Los Angeles on business. He ate lunch in Los Angeles by himself and flew home that evening. Fred's airfare cost $200....
-
A cylindrical capacitor is composed of an inner conducting cylindrical shell which has a radius r and the outer shell with a radius 12. Positive charge Q is placed on the inner shell while negative...
-
Maxwell Company uses a standard cost accounting system and applies production overhead to products on the basis of machine hours. The following information is available for the year just ended:...
-
Durable Plastics Company had the following total assets, liabilities, and equity as of December 31. Total Assets $ 440,000 Total Liabilities 133,000 Total Equity 307,000 What is the company's debt...
-
While at rest during a spacewalk, an astronaut is 11 m from an entrance to the space station. To reach the entrance, she faces away from the entrance and throws a 0.500 kg wrench directly in front of...
-
A 20-cm-square vertical plate is heated to a temperature of 30oC and submerged in glycerin at 10oC. Calculate the heat lost from both sides of the plate.
-
Which normal forms are concerned with functional dependencies?
-
Explain why a transaction may have many cursors. Also, how is it possible that a transaction may have more than one cursor on a given table?
-
Can the SQL DELETE statement be used with the PopularShowsView View? Why or why not?
-
A strain rosette consisting of three strain gauges was used to measure the strains at a point in a thin plate of dimensions \(100 \times 20 \times 1 \mathrm{~mm}\). The measured strains in the three...
-
A particle of mass \(m\) slides inside a smooth hemispherical bowl of radius \(R\). Beginning with spherical coordinates \(r, \theta\) and \(\varphi\) to describe the dynamics, select generalized...
-
Two blocks of equal mass \(m\), connected by a Hooke's-law spring of unstretched length \(\ell\), are free to move in one dimension. Find the equations of motion of the system, using the relative and...
Study smarter with the SolutionInn App