[CSCI3170]L4sol.docx

# [CSCI3170]L4sol.docx - CSCI3170 Classwork#L4 Name Student...

• Notes
• 3

This preview shows page 1 - 3 out of 3 pages.

(Sort-Merge Join) On-the-fly: Write to T1 On-the-fly: Write to T2 (File scan) (Cluster B+ tree on age) CSCI3170 Classwork (#L4) Name: Pass / Fail Student ID: Consider the following three relations for the database in a company: Worker ( W ID : integer , Name : string, age: integer, rating : integer) Project ( PID : integer , project_name : string, budget : real) Work_in ( P ID : integer , WID : integer , since: date) Assumptions : Assume 60 21 age Assume 1 ≤rating≤ 10 The distribution of age in Worker is uniform. The distribution of rating in Worker is uniform. Worker: 50 tuples per page, 1000 pages Project : 60 tuples per page, 2000 pages Work_in : 40 tuples per page, 5000 pages The buffer size is 20 pages. Consider the following execution plan. Assume the sizes of T1 and T2 are 20 and 50 pages respectively.

Subscribe to view the full document.

i) Calculate the number of page accesses for scanning the table
• Spring '19
• Writing, Following, Exponentiation, Pages

{[ snackBarMessage ]}

###### "Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern