subject

Assume that Morgan has created a database with the tables described at the end of Chapter 7 (note that STORE uses the surrogate key StoreID): EMPLOYEE (EmployeeID, LastName, FirstName, Department, Phone, Fax, EmailAddress)
STORE (StoreID, StoreName, City, Country, Phone, Fax, EmailAddress, Contact)
PURCHASE_ITEM (PurchaseItemID, StoreID, PurchasingAgentID, PurchaseDate, ItemDescription, Category, PriceUSD)
SHIPMENT (ShipmentID, ShipperID, PurchasingAgentID, ShipperInvoiceNumber, Origin, Destination, ScheduledDepartureDate, ActualDepartureDate, EstimatedArrivalDate)
SHIPMENT_ITEM (ShipmentID, ShipmentItemID, PurchaseItemID, InsuredValue)
SHIPPER (ShipperID, ShipperName, Phone, Fax, Email, Contact)
SHIPMENT_RECEIPT (ReceiptNumber, ShipmentID, PurchaseItemID, ReceivingAgent, ReceiptDate, ReceiptTime, ReceiptQuantity, isReceivedUndamaged, DamageNotes)
Assume that all relationships have been defined as implied by the foreign keys in this table list.
James Morgan wants to modify the database design of the Morgan Imports procurement information system (MIPIS) to separate the items in PURCHASE_ITEM in a separate table named ITEM. This will allow each item to be tracked as a unique entity throughout its acquisition and sale. The schema for the ITEM table is:
ITEM (ItemID, ItemDescription, Category)
PURCHASE_ITEM will then be replaced by two tables named INVOICE and INVOICE_LINE_ITEM, linked in a modified sales order configuration as shown in the next slide.
Similarly, the shipping part of the MIPIS will be modified by changes to the SHIPMENT_ITEM tables as follows:
SHIPMENT_LINE_ITEM (ShipmentID, ShipmentLineNumber, ItemID, InsuredValue)
QUESTIONS:
1. Create a dependency graph that shows dependencies among the original set of tables. Explain how you need to extend this graph for views and other database constructs such as stored procedures.
2. Using your dependency graph, describe the tasks necessary to create and populate the ITEM table.
3. Write all SQL statements to make the name change described in question B.
4. Using your dependency graph, describe the tasks necessary to change the name of the SHIPMENT_ITEM table to SHIPMENT_LINE_ITEM and the needed changes to column names.
5. Write all SQL statements to make the name change described in question D.
6. Using your dependency graph, describe the tasks necessary to convert the sales order component of the MIPIS to the new configuration.
7. Code all SQL statements necessary to implement the changes described in question F.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
You know the right answer?
Assume that Morgan has created a database with the tables described at the end of Chapter 7 (note th...
Questions
question
Mathematics, 19.03.2021 14:00
question
History, 19.03.2021 14:00
question
Mathematics, 19.03.2021 14:00
question
Business, 19.03.2021 14:00
question
Mathematics, 19.03.2021 14:00
question
Mathematics, 19.03.2021 14:00
question
Mathematics, 19.03.2021 14:00
Questions on the website: 13722363