Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1: (20 Points) Assume that a chain of computer stores that sells computers, components, and parts uses the following global schema for a relational database

image text in transcribedimage text in transcribed

Q1: (20 Points) 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, unitfest) Store (stereName, state, manager, telephone) Stock (itemder storeNamen atxanland recrderleint) 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. 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, and (6) 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. Check the available quantity on hand for item named 'Hammer' in a store names 'XYZ'. C. Q1: (20 Points) 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, unitfest) Store (stereName, state, manager, telephone) Stock (itemder storeNamen atxanland recrderleint) 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. 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, and (6) 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. Check the available quantity on hand for item named 'Hammer' in a store names 'XYZ'. C

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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

Deal with the customers requests in a competent and polite fashion.

Answered: 1 week ago

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago