Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b ) Consider a disk with block size 5 1 2 bytes. A block pointer is 6 bytes long, and a record pointer is 7

b) Consider a disk with block size 512 bytes. A block pointer is 6 bytes long, and a record pointer is 7 bytes long. A file has 30,000 EMPL OYE E records of fixed-length. E ach record has thefollowing fields: NAME (30 bytes), SSN (9bytes), DEPARTMENTCODE (9 bytes), ADDRESS (40 bytes), PH ONE (9 bytes),BIRTHDATE (8 bytes), SEX (1 byte), JOBCODE (4bytes), SAL ARY (4 bytes, real number). An additiond byte is used as a deletion marker.Assume that file is not ordered by the key field SSN and we need to create a secondary index on SSN.
(i) Find the number of levels needed, if wemake it into a multilevel index.
Data file
No. of records r=30000
Block size B=512 bytes
Record size R=115 bytes
Blocking factor bfr=BR=512115=4.45=4
Number of file blocks, b=rbfr=300004=7500
Index file-1st level
No. of records r=30000
Block size B=512 bytes
Record size R=9 bytes
Blocking factor bfr=BR=5129=56
Number of file blocks, b=3000056=536
Index file-2nd level
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

Identify three ways in which rationalism differs from empiricism.

Answered: 1 week ago

Question

=+interactive online components, out-of-home messages, print ads,

Answered: 1 week ago

Question

=+Why does the brand want to advertise?

Answered: 1 week ago

Question

=+12. Did your concept illustrate the brand's personality?

Answered: 1 week ago