Write a fragmentation schema using relational algebra

Assignment Help Computer Engineering
Reference no: EM133422795

Question: Assume that a chain of computer stores that sells computers, components, and parts uses the following global schema for a relational database that keeps information about items at each store.

Item (itemNo, itemName, supplier, unitCost)
Store(storeName, state, manager, telephone)
Stock(itemNo, storeName, qtyOnHand, reorderPoint)

The company has stores in five different states (namely, Minnesota, Illinois, California, Indiana, and Maryland).

Assume that the company stock about 15000 different items. Each item comes from only one supplier, but the same supplier can supply several items. The database keeps track of what items are in which store and the reorder point which is the number of items that is the minimum each store wishes to keep in stock. When the quantity on hand falls to the reorder point, state's manager contacts supplier to place a new order. Note that, each store serves customers in its own geographical area. Assume all this information is currently stored in a central database.

The company hired you to design a distributed database for their system hoping to make operations more efficient.

a) Assume there are 6 sites for the distributed database such that there is one site in each state and one central site. Choose a data distribution schema on the 6 sites and justify your choice (you may consider replication). Note that your schema should support efficient operation of the daily store transactions (e.g. Check the available quantity on hand for item named 'Hammer' in a store names 'XYZ').

b) Write a fragmentation schema using relational algebra. For each fragment, identify the location where it will be stored.

c) Give an instance of the data using data of your choice and show the fragmented and/or replicated database. Make sure that there are no empty fragments.

d) Do the following for each of the following queries:

(1) write the query in SQL,

(2) draw the query operator plan,

(3) perform data localization,

(4) show the query plan over fragments,

(5) find how many sites are involved to answer this query.

a. Find the total quantity of item number 1001 on hand in all stores.

b. List all suppliers who supply items that are stored in a Minnesota's store.

c. Check the available quantity on hand for item named 'Hammer' in a store names 'XYZ'

Reference no: EM133422795

Questions Cloud

How does multiculturalism still affect american society : What has been the impact of the changes that have taken place? How does multiculturalism still affect American society and how we do things?
Describe some of the character roles you assume : Describe some of the character roles you assume in your current writing. Include traits of each role that distinguish it from others
What is the opportunity cost of going skiing : Consider your decision about whether to go skiing for the weekend. Suppose that transportation, lift tickets, and accommodation for the weekend costs $350.
Can the free enterprise market driven system of capitalism : Can the free enterprise market driven system of capitalism use managerial economics to eliminate poverty in the United States?
Write a fragmentation schema using relational algebra : Write a fragmentation schema using relational algebra. For each fragment, identify the location where it will be stored
Discuss about neurological disorders : What causes migraine headache? Discuss its signs, precipitating factors, and treatment. Discuss the role of analgesic drugs.
Why might you shut down in the short- or long-run : Why might you shut down in the short- or long-run? What kinds of costs are involved in making a decision to shut down?
Describe a recent purchase that you made : Describe a recent purchase that you made. What was the opportunity cost? Applying the decision rule for consumption choices, discuss whether your purchase was
How is the process of immunosuppression : How is the Process of Immunosuppression and the Effect it has on Body Systems?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Discuss the role that firewalls and router access

Discuss the role that firewalls and router access lists can play in defending against such attacks. The increase in spyware and viruses from popular social.

  Write some code that asks the user to enter an integer

Write some code that asks the user to enter an integer via the keyboard, use that integer to set the length of an array.

  What medical record number would you expect to find

In a terminal digit filing system, you see the file guide. What medical record number would you expect to find to the right of that file guide? Which one of the following statements about terminal digit filing is true?

  What is output when the following code fragment is executed

What is the output when the following code fragment is executed?

  Develop equivalent structures without delay free loops

Determine by inspection whether or not the digital filter structures in figure have delay free loops identify these loops if they exist.

  Configure timer 0 for mode 1 maximum delay

Configure the serial port to mode 1 with enabled reception and 9600 BAUD rate for the DS89S420 microcontroller. Also configure Timer 1 for mode 2.

  Troubleshooting the infected system

AV software has eliminated the malware from a highly infected system. After first reboot, an error message is displayed which consists of a reference to the strange DLL file which is missing.

  Determine how should backup media be secured

There have been several incidents lately in which backup media containing personal customer information were lost or stolen. How should backup media be secured?

  Describe proposed implementation project approval process

Describe the proposed implementation project approval process, identifying stakeholders who will authorize the project team to go forward with the plan.

  What determines the lifetime of each variable

Systematically analyze the lifetimes of variables of your favorite programming language. What determines the lifetime of each variable?

  What is the delay for a packet to reach destination y

Assume the size of acknowledgment packet is 60b. What is the delay for a packet to reach destination Y (in micro-second)?

  As the lead analyst for the hoosier burger project you have

as the lead analyst for the hoosier burger project you have worked closely with bob and thelma nbspmellankamp. having

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