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
I had trouble finding the relevant material for the thermal physics assignment essay and I really wanted some help with writing my assignment. The thermal physics assignment expert at HwA really understood the crux of the assignment question and delivered an excellent quality assignment essay that helped me score an A.
The time and effort given to each individual student by the New Zealand Accounting Assignment writing experts at HwA is what makes me keep coming back to them for all my accounting assignment help requirements. I am a post graduate student of accounting from the University of Otago in Christchurch and with the help of the accounting assignment help experts from New Zealand I have been performing better and better in class.
Dissertation paper completed on time and this credit completely goes to TheReliableTutor.com. Thank you so much guys, its only just because of you that I completed on time and got good job.
I needed urgent help with my Labor Economics Assignment essay. The other online help service that I was using had produced an extremely unsatisfactory essay and I was in desperate need to make it right. I did not even have more than a day to fix it. But when I approached HwA they were up for the challenge and boy did they deliver! I passed in my assignment and even managed to be in the top ten of the class.
I desperately needed help to understand the topics under public works engineering and did not know where to turn to. Thankfully one of my friends suggested taking the online civil engineering tutoring sessions with HwA. The online tutors not only helped me understand the concepts but also provided reference material and notes to write the assignment essays.
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.