Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A patient record consists of the following: 3 fixed-length fields: the patients date of birth, social-security number, and patient ID, each field is 10 bytes

A patient record consists of the following:

3 fixed-length fields: the patients date of birth, social-security number, and patient ID,

each field is 10 bytes long.

It also has the following 3 variable-length fields: name, address, and patient history.

If pointers within a record require 4 bytes, and the record length is a 4-byte integer, how many bytes, exclusive of the space needed for the variable length fields, are needed for the record ? You may assume that no alignment of fields is required.

Question 1.2 Record Layout (5 Points)

Suppose records are as in Question 1.1, and the variable length fields name, address, and history each have a length that is uniformly distributed. For the name, the range is 10 - 50 bytes; for address it is 20 - 80 bytes, and for history it is 0 - 1000 bytes. What is the average length of a patient record?

Question 1.3 Record Layout (5 Points)

Suppose that the patient records of Question 1.1 are augmented by an additional repeating field that represents cholesterol tests. Each cholesterol test requires 16 bytes for a date and an integer result of the test. Show the layout of patient records if:

a. The repeating tests are kept with the record itself.

b. The tests are stored on a separate block, with pointers to them in the record.

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

Explain the concept of dominance. How is it used?

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago