Solved

Case Study 2 - Complete Pet Care

Question 4

Essay

Case Study 2 - Complete Pet Care
Case Study 2 - Complete Pet Care   For a more complete description, see Case Study 4 under Chapter 22. -Consider the above relational schema. Map the following query onto a relational algebra tree, and then transform it into a reduced query.Give a full explanation of the reasoning behind each step and state any transformation rules used during the reduction process. SELECT P.petNo, petName, oName, oAddress FROM Pet P, Owner O, Prescription P, Medication M WHERE PR.medNo = M.medNo AND PR.petNo = P.petNo AND P.ownerNo = O.ownerNo AND medName = ' Provac' AND unitsPerDay > 200 AND petDescription = 'Setter';
For a more complete description, see Case Study 4 under Chapter 22.
-Consider the above relational schema. Map the following query onto a relational algebra tree, and then transform it into a reduced query.Give a full explanation of the reasoning behind each step and state any transformation rules used during the reduction process.
SELECT P.petNo, petName, oName, oAddress
FROM Pet P, Owner O, Prescription P, Medication M
WHERE PR.medNo = M.medNo AND
PR.petNo = P.petNo AND
P.ownerNo = O.ownerNo AND
medName = ' Provac' AND
unitsPerDay > 200 AND
petDescription = 'Setter';

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents