Person(PersonID, FirstName, LastName, Birthyear, DepartmentNo) This time however, the records are stored in a heap file

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Person(PersonID, FirstName, LastName, Birthyear, DepartmentNo) This time however, the records are stored in a heap file

Post by answerhappygod »

Person Personid Firstname Lastname Birthyear Departmentno This Time However The Records Are Stored In A Heap File 1
Person Personid Firstname Lastname Birthyear Departmentno This Time However The Records Are Stored In A Heap File 1 (73.07 KiB) Viewed 35 times
Person(PersonID, FirstName, LastName, Birthyear, DepartmentNo) This time however, the records are stored in a heap file containing 1250 blocks. In addition to this we have an unclustered B+ tree with LastName as the search key. At the leaf level in this tree we will have pointers to the records stored in the heap. Assume that the B+ tree has 300 blocks at the leaf level and with 3 levels. Give an estimate for how many blocks are accessed by the following SQL queries. Write a short explanation for each answer, and remember to write down any assumptions that you find necessary 2 1. SELECT * From Person; 2. SELECT * From Person WHERE PersonlD = 195800; 3. SELECT PersonID WHERE LastName = "Søkerud"; 4. SELECT DISTINCT LastName FROM Person; 5. INSERT INTO Person(195230, 'Per', 'Persen', 1971, 185);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply