Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[20 points] Write SQL queries to retrieve the following information from t (See schema on last page). 6) he PetStore database a. What is the

image text in transcribed
image text in transcribed
[20 points] Write SQL queries to retrieve the following information from t (See schema on last page). 6) he PetStore database a. What is the average list price for each merchandise category? b List all the cities with 'new' in their name. Show the city name, population 1990, and state. Organize results by state name By total dollar value (not just quantity), which customer has bought the most stuff? Rank from highest to lowest. Ignore the Walkin customer id 1. c. What was the greatest increase in population from 1980 to 1990. This should be a single result answer. d. e. Rank the number of adoptions by adoption group source from lowest to highest. f. Which suppliers did the PetStore never buy anything from? Show the name and ID. 7) EXTRA CREDIT [3 points] Identify three relational database software providers. Page 6 of 9 AdoptionGroup Animal AdoptionlD AdoptionSource ContactName ContactPhone AnimalID Name Category Breed DateBorn Gender Registered Color Photo ImageFile Imageheight ImageWidth Adoption!D SalelD Donation Breed Category Breed Employee City EmployeelD LastName FirstName Phone Address ZIPCode Category Category Registration Supplier SupplierlD Name ContactName Phone Address ZIPCode CitylD CitylD ZIPCode City State AreaCode Population1990CitylD Population1980 Countny TaxPayerl DateHired DateReleased ManagerlD Employeelevel Title Sale SalelD SaleDate EmployeelD CustomerlD Sales Tax Customer CustomerlD Phone FirstName LastName Address ZIPCode CitylD Latitude Longitude Merchandise ItemID Description ListPrice Saleltem MerchandiseOrder PONumber OrderDate ReceiveDate SupplierlD EmployeelD ShippingCost Orderltem PONumber emiD Quantity SalelD QuantityOnHandItemlD Quantity SalePrice Cost !Category

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

25 Vba Macros For Data Analysis In Microsoft Excel

Authors: Klemens Nguyen

1st Edition

B0CNSXYMTC, 979-8868455629

More Books

Students also viewed these Databases questions

Question

I dont want to use the ai version of chegg I like the old version

Answered: 1 week ago

Question

1. Organize and support your main points

Answered: 1 week ago

Question

3. Move smoothly from point to point

Answered: 1 week ago

Question

5. Develop a strong introduction, a crucial part of all speeches

Answered: 1 week ago