Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 

image

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

What does SQL stand for, and what purpose does it serve?

Answered: 1 week ago

Question

Define project scope.

Answered: 1 week ago