Question: 2 . Using the following tables: PET _ OWNER ( OwnerID , Name, Phone, Email, Street,City,State,Zip ) , PET ( PetID , Name, Type, Breed,
Using the following tables: PETOWNEROwnerID Name, Phone, Email, Street,City,State,Zip PETPetID Name, Type, Breed, DOB, OwnerID
Write SQL statements to do the following:
a Write CREATE TABLE statements to create the tables shown above. Be sure to first check to see if the table already exists and drop the old one if necessary.
b Write SQL statements to add at least rows to the PETOWNER table. c Write SQL statements to add at least rows to the PET table.
d Write a SQL statement to display all of the columns and all of the rows of PET.
e Write a SQL statement to display the Name, Breed and Type of all pets on file.
f Write a SQL statement to display the Name, Breed and Type for all pets that are of the Type "Dog" and the Breed "Poodle".
g Write a SQL statement to display the Name, Breed, and Type for all pets that are not of Type Cat, Dog, or Fish.
h Write a SQL statement to display all owners in the zipcode.
i Write a SQL statement to display the pets Name, Breed, and the owners name.
j Write a SQL statement to count the number of pets on file.
k Write a SQL statement to count the number of pets in the zipcode.
l Write a SQL statement to display the name and phone number of all cat owners
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
