
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
please solve qn f.

Transcribed Image Text:Consider a disk with block size B = 512 bytes. A block pointer is P = 6 bytes long,
and a record pointer is PR = 7 bytes long. A file has r = 30,000 EMPLOYEE records
of fixed length. Each record has the following fields: Name (30 bytes), Ssn (9 bytes),
Department_code (9 bytes), Address (40 bytes), Phone (10 bytes), Birth_date (8
bytes), Sex (1 byte), Job_code (4 bytes), and Salary (4 bytes, real number). An
additional byte is used as a deletion marker.
a. Calculate the record size R in bytes.
b. Calculate the blocking factor bfr and the number of file blocks b, assuming an
unspanned organization.
c. Suppose that the file is ordered by the key field Ssn and we want to construct a
primary index on Ssn. Calculate (i) the index blocking factor bfr (which is also the
index fan-out fo); (ii) the number of block accesses needed to search for and retrieve a
record from the file-given its Ssn value-using the primary index.
d. Suppose that the file is not ordered by the key field Ssn and we want to construct a
secondary index on Ssn. Repeat the previous exercise (part c) for the secondary index
and compare with the primary index.
e. Suppose that the file is not ordered by the nonkey field Department_code and we
want to construct a secondary index on Department_code, Assume there are 1,000
distinct values of Department_code and that the EMPLOYEE records are evenly
distributed among these values. Calculate (i) the index blocking factor bfri (ii) the
approximate number of block accesses needed to search for and retrieve all records in
the file that have a specific Department_code value, using the index.
f. Suppose that the file is ordered by the nonkey field Department_code and we want
to construct a clustering index on Department_code that uses block anchors (every
new value of Department_code starts at the beginning of a new block). Assume there
are 1,000 distinct values of Department_code and that the EMPLOYEE records are
evenly distributed among these values. Calculate (i) the index blocking factor bfri (ii)
the number of block accesses needed to search for and retrieve all records in the file
that have a specific Department_code value, using the clustering index (assume that
multiple blocks in a cluster are contiguous).
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 5 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Recurrence relation in the form: T(n) = T(n-1) + 1 is called caracteristic equation homogeneous linear recurrence equation nonhomogeneous linear recurrence equation none of the abovearrow_forwardCircle True or Falsearrow_forwardQUESTION 3 Find k, if any, such that AB = BA where 25 4 -5 A = and B= 3 karrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education