Question: Write an SQL statement to display the last name, first name, and email of any owners of cats with the name Teddy. Use a subquery.

Write an SQL statement to display the last name, first name, and email of any owners of cats with the name Teddy. Use a subquery. The following table schema for the BREED table shows a new table to be added to the pet database: BREED (BreedName. Min Weight, MaxWeight, AverageLife Expectancy) Assume that Pet Breed in PET 3 is a foreign key that matches the primary key BreedName in BREED, and that BreedName in BREED is now a foreign key linking the two tables with the referential integrity constraint: BreedName in PET_3 must exist in BreedName in BREED If needed, you may also assume that a similar referential integrity constraint exists between PET and BREED and between PET 2 and BREED. The BREED table data are shown in Figure 3-20.

AppendixLO1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Database Management Systems Questions!