Question: create an SQL statement to display the breed and type of all pets, an SQL statement to display the breed, type, and DOB for all

create an SQL statement to display the breed and type of all pets,  an SQL statement to display the breed, type, and DOB for all pets having the type Dog
and the breed Std. Poodle,  another  SQL statement to display the name, breed, and type for all pets that are not of type,  an SQL statement to display the pet ID, breed, and type for all pets having a four-
character name starting with K. 

Place codes  and screenshots of results here 

PET OWNER OwnerID OwnerLastName 1 2 3 34 PET PetID PetName King

sing the attached script to create and fill the tables for the data retrieval queries of this 
assignment. (copy and paste the code from MySQL and screenshot from the results to the word 
document. Upload both SQL code and word document answers:

PET OWNER OwnerID OwnerLastName 1 2 3 34 PET PetID PetName King Teddy Fido AJ 2 23 3 4 5 6 Downs James Frier Trent 7 Cedro Wooley Buster PetType Dog Cat Dog Dog Cat Cat Dog OwnerFirstName Marsha Richard Liz Miles PetBreed Std. Poodle Cashmere Std. Poodle Collie Mix Unknown Unknown Border Collie OwnerPhone OwnerEmail 555-537-8765 Marsha.Downs@somewhere.com 555-537-7654 Richard. James@somewhere.com 555-537-6543 Liz.Frier@somewhere.com Miles.Trent@somewhere.com HULL PetDOB PetWeight OwnerID 2011-02-27 25.5 2012-02-01 10.5 2010-07-17 28.5 2011-05-05 20.0 2009-06-06 9.5 9.5 2008-12-11 25.0 NULL 1 2 1 3 2 2 4

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 Databases Questions!