Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SELECT , P _ CODE, P _ PRICESELECT , P _ CODE, P _ ? - Q O H * * P - PRICEQuestion 1

SELECT , P_CODE, P_PRICESELECT , P_CODE, P_?-QOH**P-PRICEQuestion 1
Name the type of transparency (location, replication, failure, and concurrency) that is
indicated by each statement.
a) End users in New York and Tulsa are updating the Engineering Parts database
in San Mateo at the same time. Neither user is aware that the other is accessing
the data, and the system protects the data from lost updates due to interference.
b) An end user in Tulsa deletes an item from the Standard Price List at the site.
Unknown to the user, the distributed DBMS also deletes that item from the
Standard Price List in San Mateo and New York.
c) A user in San Mateo initiates a transaction to delete a part from San Mateo parts
and simultaneously to add that part to New York parts. The transaction is
completed in San Mateo but, due to transmission failure, is not completed in New
York. The distributed DBMS automatically reverses the transaction at San Mateo
and notifies the user to retry the transaction.
d) An end user in New York requests the balance on hand for part number 33445.
The user does not know where the record for this part is located. The distributed
DBMS consults the directory and routes the request to San Mateo.
FROM PRODUCT
WHERE , P_QOH**P?PRICE >(SELECT AVG PRICE) FROM
PRODUCT)
What is the likely data sparsity of the P-QOH and P-PRICE columns?
Should you create an index, what would the index column(s) be, and why should you
create that index?
SELECT P_CODE, P_DESCRIPT, P_QOH, P_PRICE, V_CODE
FROM PRODUCT
WHERE , V_CODE ='21344'
ORDER BY P_CODE;
12.What index would you recommend, and what command would you use?
SELECT CUS_CODE, MAX (LINE_TOTAL)
FROM CUSTOMER NATURAL JOIN INVOICE NATURAL JOIN LINE
WHERE CUS_AREACODE ='615'
GROUP BY CUS_CODE;
What indexes would you recommend for the query you above?
FROM PRODUCT
WHERE P_PRICE >=(SELECT AVG (P_PRICE) FROM PRODUCT) ;
What is the likely data sparsity of the P_PRICE column?
Should you create an index? Why or why not?
SELECT P_CODE, SUM(LINE_UNITS)
FROM LINE
GROUP BY P_CODE
HAVING SUM(LINE_UNITS)>(SELECT MAX (LINE_UNITS) FROM LINE);
What is the likely data sparsity of the LINE_UNITS column?
Should you create an index? If so, what would the index column(s) be and why
would you create that index?
Should you create an index on P-CODE? If so, write the SQL command to create
that index. If not, explain your reasoning.
image text in transcribed

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

L06 Explain the biological correlates of sexual dysfunction.

Answered: 1 week ago

Question

Make efficient use of your practice time?

Answered: 1 week ago