Solved

Case Study 2 - Complete Pet Care

Question 3

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. -Using the above relational schema, determine whether the following query is both type and semantically correct: SELECT P.petNo, petName, oName, O.TelNo FROM Pet P, Owner O, Prescription Pr, Medication M, Surgery S  WHERE Pr.medNo = M.medNo AND  S.surgeryNo = O.surgeryNo AND PR.petNo = P.petNo AND P.ownerNo = O.ownerNo AND M.medNo = 'J. Smith' AND adminMethod = 'Oral' AND S.surgeryNo = 100;
For a more complete description, see Case Study 4 under Chapter 22.
-Using the above relational schema, determine whether the following query is both type and semantically correct:
SELECT P.petNo, petName, oName, O.TelNo
FROM Pet P, Owner O, Prescription Pr, Medication M, Surgery S
WHERE Pr.medNo = M.medNo AND
S.surgeryNo = O.surgeryNo AND
PR.petNo = P.petNo AND
P.ownerNo = O.ownerNo AND
M.medNo = 'J. Smith' AND adminMethod = 'Oral' AND
S.surgeryNo = 100;

Correct Answer:

verifed

Verified

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