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
You guys never fail to surprise me. Thanks for helping me with my finance assignment.
As a foreign student new to the methods of teaching in the States I desperately needed some personal tutoring with the topics of Stats for my graduate level program. HwA broke my misconception about online services being good only for school students and undergrads by providing me with excellent online stats tutoring for my Masters level requirements.
I had taken the help from HwA to write the assignment on consumer protection laws in the UK. I needed to include a recent case study in the assignment essay and the commercial law assignment expert at HwA knew the best example to incorporate. I got an A in the assignment and that helped boost my grade for the entire term.
I was really stuck with my human structure assignments when I came across TheReliableTutor.com. To be honest, I was skeptical. Then I got an A in my cardiovascular systems assignment. That was the first work they did for me. From there it only got better. I am now thinking of doing my MSN and will definitely seek their help for that."
The opportunity to talk to your online network security tutor anytime during the day is a great help. It is extremely helpful when you want to clarify any point in your assignment. The tutors are extremely professional and they have great knowledge on practically any topic under the sun in IT security. Would definitely recommend to all.
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.