PART IV
Case Study 2 Complete Pet Care
Owner (ownerNo, oName, oAddress, oTelNo)
Pet (petNo, petName, petDescription, petSex, petDOB, dateRegistered,
For a more complete description, see Case Study 4 under Chapter 22.
23.3 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
23.4 Consider the above relational schema. Map the following query onto a relational algebra tree,
and then transform it into a reduced query:
SELECT P.petNo, petName, oName, oAddress
FROM Pet P, Owner O, Prescription P, Medication M
WHERE PR.medNo = M.medNo AND