Answered You can buy a ready-made answer or pick a professional tutor to order an original one.

QUESTION

Use the following information for problems 4 – 10:Tables:PET_OWNER (OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail)PET (PetID, PetName, PetType, PetBreed, PetDOB, OwnerID)**Note: Own

  1. Use the following information for problems 4 – 10:
  2. Tables:
  3. PET_OWNER (OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail)
  4. PET (PetID, PetName, PetType, PetBreed, PetDOB, OwnerID)
  5. **Note: OwnerID is italicized to indicate the Foreign Key**
  6. Data:
  7. Write an SQL CREATE TABLE statement to create the PET_OWNER table, with OwnerID as a surrogate key. Save as CreatePetOwner.
  8. Write a set of SQL INSERT statements to populate the PET_OWNER table with the data given above. Save as PopulatePetOwner.
  9. Write an SQL CREATE TABLE statement to create the PET table, with PetID as a surrogate key. Save as CreatePet.
  10. Write a set of SQL INSERT statements to populate the PET table with the data given above. Save as PopulatePet.
  11. Write an SQL statement to display the breed and type of all pets. Save as AllBreeds.
  12. Write an SQL statement to display the breed, and DOB of all pets having the type Cat. Save as Cats.
  13. Write an SQL statement to display the first name, last name, and email of all owners, sorted in alphabetical order by last name. Save as AlphaOwners.
  14. Write an SQL statement to display all the owners’ names, with the first name in all lower case and the last name in all upper case. Save as UpperLower.
  15. Write an SQL statement to display the total number of pets. Save as TotalPets.
  16. Write an SQL statement to display the last name, first name and email of any owner who has a NULL value for OwnerPhone. (Note: there should be one owner who has a NULL value for OwnerPhone.) Save as PhoneNull.
  17. Write an SQL statement to count the number of distinct breeds. Save as NumberOfBreeds.
  18. Write an SQL statement to display the names of all the dogs. Save as Dogs.
Show more
  • @
  • 22 orders completed
ANSWER

Tutor has posted answer for $40.00. See answer's preview

$40.00

**** are *** the ********** me know ** *** *************** *** ****** ***********

Click here to download attached files: Pet Queries.zip
Click here to download attached files: Pet Queries.zip
Click here to download attached files: Database1.txt
or Buy custom answer
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question