Get in touch with us
Send us an e-mail
Question
Consider the database schema
emp(eid, did, sal, hobby)
dept(did, dname, floor, phone)
finance(did, budget, sales, expenses)
and the following query.
Select D.dname, F.budget
From emp E, dept D, finance F
Where E.did=D.did and D.did=F.did and D.floor=1
and E.sal>=49000 and E.hobby=’tennis’
(a) Draw the initial query tree and an optimized query tree produced by a decent query
(b) Assume that the optimizer will not consider any evaluation plan involving a cross product, list join orders that the optimizer will consider.
(c) Consider the following scenario. The attributes that have unclustered B+ tree indexes are emp.did, emp.sal, dept.floor, dept.did, and finance.did. The data in emp.sal ranges between 10,000 and 60,000. Employees have 200 different hobbies. The building of the company has 5 floors. The company has 50,000 employees and 2,500 departments, each of which has some financial information. The DBMS uses only the indexed nested loop join methods including possible pipelining. Assume that all B+ tree indexes have 3 levels.
i. For each base relation (i.e., emp, dept, and finance), estimate the number of tuples that will satisfy all non-join conditions relevant to that relation.
ii. Which join order considered by the optimizer has the lowest estimated cost?
Summary
This question belongs to computer science and discusses about query tree for a database schema.
Word count: NA
Download Full Solution
Things got very difficult during my 3rd semester of my Mechanical Engineering course. After coming to the States I realized that education here is very challenging. Thanks to TheReliableTutor.com, I completed all the fluid mechanics reports with an A+. Now currently they are working on my mid-tern research report and I am happy with the service.
It is very affordable. I took the package for the entire semester and truth be told I have got absolute value for money till now. I am sure that I am taking the package for my next semester as well. Not to mention referring you to my friends at school.
The online finance fixed income derivatives assignment helper from HwA was very patient with all my questions and did not mind answering my questions at any time of the day relating to the fixed income derivatives assignment help. They also incorporated all the suggestions that were made by me. All in all I was extremely satisfied with the overall experience and the end product. To top it all I topped the class too!
I was clueless about my post tracheostomy and laryngectomy patient care assignment, when I came across HwA. Never really believed in the beginning that they have a separate unit for respiratory system assignment solutions and the experts here are really helpful.
I was going through a rough time for health reasons and needed help with writing my Keynesian Multiplier Model Assignment. The Economics assignment expert at HwA delivered the Keynesian Multiplier Model Assignment essay exactly as per the guidelines that I had suggested.
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.