You viewed two video resources, Designing a Database and Relational Schema of
the "Priscilla/Dave" project. At the end of the logical design phase,
there were five tables (Pet, PetOwner, IdTag, PetFood, and Toy).
(a) Find the names of pets owned by anyone whose first name is John. Note: Use the SELECT command.
(b) As there is a many-to-many relationship (between Pet and
Toy) that cannot be expressed in a Relational database, an additional
table (PetToy) was introduced that links the two tables. Thus, the
final design is:
Priscilla is interested in providing additional services to
her customers, as well as having a better control on her toys and food
suppliers. For additional services, she wants to add to the database the
names of veterinary doctors in the neighborhood. Each customer could
choose the vet he or she wants to work with, and that vet will treat all
the customers’ pets.
Priscilla also likes to add supplier data to her database.
Each PetFood item is supplied by just one FoodSupplier (but a supplier
can supply many food items). A Toy can be supplied by multiple
ToySuppliers. A ToySupplier can supply many Toys.
Extend the design to include Veterinarians, PetSuppliers, and ToySuppliers.