Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 3 - 2 8 : BITM 5 2 0 - Project 4 Submit either an access database with each of your queries numbered in

Figure 3-28: BITM520- Project 4
Submit either an access database with each of your queries numbered in the database or
submit a Word document with the query syntax. You will be graded 1 pt per question
based on the accuracy of the query results.
Use the following tables for your answers to the questions
PET_OWNER (OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail)
PET (PetID, PetName, PetTyoe, PetBreed, PetDOB, OwnerID)
PET_3(PetID, PetName, PetTyoe, PetBreed, PetDOB, PetWeight, OwnerID)
BREED (BreedName, MinWeight, MaxWeight, AverageLifeExpectancy)
Sample data for these tables are shown in Figures 3-26 and 3-27. For each SQL statement you
write, show the results based on these data.
Figure 3-26 :
PET_OWNER Data
Figure 3-27:
PET Data Figure 3-28:
PET_3 Data
Figure 3-29:
BREED Data
3.1 Write an SQL statement to display all columns of all rows of PET. Do not use the
asterisk (*) notation.
3.2 Write an SQL statement to display all columns of all rows of PET. Use the asterisk (*)
notation.
3.3 Write a SQL statement to display the breed and types of all pets.
3.4 Write an SQL statement to display the breed, type, and DOB of all pets having the type
Dog.
3.5 Write an SQL statement to display the PetBreed column of PET.
3.6 Write an SQL statement to display the PetBreed column of PET. Do not show
duplicates.
3.7 Write an SQL statement to display the breed, type, and DOB for all pets having the type
Dog and the breed Std. Poodle.
PET_3 Data
Figure 3-29:
BREED Data
3.1 Write an SQL statement to display all columns of all rows of PET. Do not use the
asterisk (*) notation.
3.2 Write an SQL statement to display all columns of all rows of PET. Use the asterisk (*)
notation.
3.3 Write a SQL statement to display the breed and types of all pets.
3.4 Write an SQL statement to display the breed, type, and DOB of all pets having the type
Dog.
3.5 Write an SQL statement to display the PetBreed column of PET.
3.6 Write an SQL statement to display the PetBreed column of PET. Do not show
duplicates.
3.7 Write an SQL statement to display the breed, type, and DOB for all pets having the type
Dog and the breed Std. Poodle.
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions