What is the highest normal form of the universal schema

Assignment Help Database Management System
Reference no: EM131028100

Questions:

(Please submit your final exam in MS word and name your file with your name!)

A. Please answer the following questions as detailed as possible:

a. For a B-tree of order 4 consisting of 3 levels, what is the maximum amount of records which may be stored?

b. For a B+-tree of order 3 consisting of 3 levels for the index part, what is the maximum amount of records which may be stored assuming that a data block for data records can hold 100 of them?

c. A PARTS file with Part# as hash key includes records with the following Part# values: 2369, 3760, 4692, 4871, 5659, 1821, 1074, 7115, 1620, 2428, 3943, 4750, 6975, 4981, 9208. The file use eight buckets, number from 0 to 7. Each bucket is one disk block and holds two records. Load these records into the file in the given order, using the hashing function h(K) = K mod 8. Calculate the average number of block accesses for a random retrieval on Part#.

B. Given universal schema R(A,B,C,D,E,F,G,H,I} and a set of functional dependencies as follows:

AB → CD
A → E
B → FH
C → G
D → B
G → C
H → I

a. What is the key for the universal schema R?

b. What is the highest normal form of the universal schema R? Please explain.

c. If the universal schema R is not in 3NF (the third normal form), please make lossless join decomposition of schema R into a set of 3NF schemas with the property of functional dependency preservation.

d. List all the keys (include candidate keys) in all the schemas (tables) achieved in c.

e. List all the foreign keys in each schema (table) if any.

f. Prove that the decomposition in c. is lossless join decomposition.

g. Is the decomposition you have created a BCNF decomposition? (That is, is each of the schemas (tables) achieved in c. in BCNF?

C. Assume one file has r =106 records. Each record takes R = 100 bytes, of which 10 bytes are for the key of the record. Suppose the key values range from 1 through 1,000,000, inclusive. Assume the block size B is 1000 bytes for all files, and that an address (block pointer, tree node pointer, or data record pointer) takes 10 bytes.

1. Sequential file:
a. What is the blocking factor bfr for the file?
b. How many data blocks b are needed to hold records?
c. How many data blocks accesses on the average are needed to fetch a record by using linear search?
d. How many data blocks accesses are needed to fetch a record by using binary search?

2. Single Level Index:
e. What is the blocking factor bfri for the index?
f. How many index blocks bi are needed to build the single level primary index?
g. How many block accesses on the average are needed to fetch a record by using single level primary index and by doing linear search?
h. What is the least number of block accesses to fetch a record by using single level primary index?

3. Multilevel Index:
i. What is the fan-out value if multi-level index is used?
j. How many levels are there so that top level index fits on a single block in multilevel index?
k. How many block accesses are needed to fetch a record by using multilevel index?
l. What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

4. B+-tree Structure:
m. What is the order P of the B+-tree if B+-tree access structure on the key is constructed?
n. What is the number of leaf-level blocks needed if blocks are approximately 69% full (round up for convenience)?
o. What is the number of levels needed if internal nodes also 69% full (round up for convenience)?
p. What is the total number of blocks required by the B+-tree?
q. What is the number of block accesses needed to search for and retrieve a record from the file -- given its key value by using B+-tree?

D. Given the relational tables as follows:

SHIP(Shipname, Captain)
CREW(Crewname, Hometown, Shipname)
GROWS(Hometown, Flower)
ALLERGIES(Crewname, Flower)

Please use SQL statement to construct the following queries:
(You are not supposed to use any aggregation functions such as count(), sum(), etc.; you are assumed that you do not know the data values of Shipname, Captain, Crewname, Hometown, Flower, etc. in the database table when you query the database table).

a. For each crew, if the crew is allergic to no flowers that grow on his/her hometown, then list the crew's name.

b. For each crew, if the crew is allergic to all flowers that grow on his/her hometown, then list the crew's name.

c. For each crew, if the crew is allergic only to the flowers that grow on their hometown, then list the crew's name.

d. For each crew, if the crew is allergic to exactly the same flowers that his/her captain is allergic to, then list the crew's name.

E. Explain how functional dependencies can be used to indicate that:

a.) A one-to-one relationship set exists between entity sets advisor and student.

b.) A one-to-many relationship set exists between entity sets advisor and student.

F. Given the relational schema R, where X and Y are attribute sets such as: X ⊆ R and Y ⊆ R, please elaborate the meaning of the functional dependencies such as: Φ → Y and X → Φ.

Reference no: EM131028100

Questions Cloud

Schedule variance for the project : Note the discrepancy of earned value figures when using the 50-50 Rule and 0-100 Rule. Why is there a discrepancy? Which Rule should we use? Explain your rationale. Using the 50-50 Rule earned value computation, what is schedule variance for the pr..
Find current gain - voltage gain and power gain of amplifier : The load is a 5- Ω resistance. Find the current gain, voltage gain, and power gain of the amplifier. If the power supply has a voltage of 12V and supplies an average current of 2A, find the power dissipated in the amplifier and the efficiency.
Determine the following probabilities : Four (standard) dice (cubes with 1,2,3,4,5,6 respectively,dots on their six faces) each of a different color are tossed each landing with one of its faces up, thereby showing a number of dots. Determine the following probabilities.
Decided to get a running start on an upcoming sale : Our new process manager decided to get a running start on an upcoming sale and advised the planner to start the project with 90% of the details, increase the batch size, and add more people in order to finish the process as soon as possible. From cla..
What is the highest normal form of the universal schema : Calculate the average number of block accesses for a random retrieval - what is the key for the universal schema R and what is the highest normal form of the universal schema R? Please explain.
Determine the number of its n- combinations : consider the multiset {n times a, n times b, 1,2,3...,n+1} of size 3n+1. Determine the number of its n- combinations.
Identify the factors that affect toxicity in a population : Identify the factors that affect toxicity in a population. Pick three of the factors and provide a brief discussion on how that factor can affect the health of a population.
Describe the websites applications or multimedia resources : Write a 350- to 700-word summary discussing the following based on your research: Describe the websites, applications, or multimedia resources. How do healthcare providers use these resources to enhance their products and services
Daily dessert plan that would to maximize total taste index : Maggie Stewart loves desserts but due to weight and cholesterol concerns, she has decided that she must plan her desserts carefully. There are two possible desserts she is considering: snack bars and ice cream. Write the LP formulation to determine M..

Reviews

Write a Review

Database Management System Questions & Answers

  Complete service request scheduling system database

Complete Service Request Scheduling System Database

  What is file organization

What is file organization? what are file organization techniques.explain in detail? explain random file organization technique, multikey file organization technique?

  Write a second select statement that uses

Write a SELECT statement that returns three columns: EmailAddress, OrderID, and the order total for each customer.

  Security associated with new project

Your company has put in the request for a new database system and you have been tasked with architecting the security associated with this new project.

  Develop the erd for given problem

An art museum owns a large volume of works of art. Each work of art is described by an item code (identifier), title, type, and size; size is further composed of height, width, and weight.

  Analyze these database products for their appropriate uses

Analyze these database products for their appropriate uses, strengths, and weaknesses in comparison with the needs of your organization. Recommend and defend the best DBMS product(s) for fully addressing the broad, high-level technological and ope..

  Use the information and build context data flow diagram

The purpose of the sales and book tracking system is to provide a single central repository of all information about sales leads, books in process, and books for sale. The Sales Department will enter new authors to the system as they gather leads ..

  Indicate the normal form of the relation

For each of the following relations, indicate the normal form of the relation. Put each relation in the 3NF.

  Database containing student info

Create a database containing student info (name, age, ect.).Find a way to allow the user to search the database using a students name and allowing them to delete that students information.Use binary input/output to take the input from the user for th..

  Explain how to create query in access query wizard

Describe how to create a query in Access Query Wizard equilvant to the query: SELECT first, last, department, hours FROM payroll WHERE hours>.

  Draw a diagram 0 dfd for the order system

Draw a decision tree that describes the merchandise inventory management process.

  Question 1a explain the use of facts dimensions and

question 1a explain the use of facts dimensions and attributes in a star schema model.b in relation to a fact table

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd