Based on your start schema in a. , write a SQL query displaying the pet's name, pet type, treatment name, visit day and visit fees for all the pets who visited the hospital in October 2020.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 69C: Update the DETAILRENTAL table to set the values in DETAIL_RETURNDATE to include a time component....
icon
Related questions
Question

A local veterinarian hospital keeps record about the different pets they see over time, as well as information about the owners and treatment provided.
The following tables represent a sample of the information recorded about owners, pets, and treatments.

 

Owners

LastName

FirstName

Phone

Downs

Marsha

555-537-8765

James

Richard

555-537-7654

Frier

Liz

555-537-6543



Pets

PetName

Type

Breed

Weight

King

Dog

Std. Poodle

25.5

Teddy

Cat

Cashmere

10.5

Fido

Dog

Std. Poodle

28.5

King

Horse

Border Collie

25.0



Treatments

Name

Anesthesia Required

Vaccine

No

Dental

Yes

Surgery

Yes



  1.  

 

A veterinarian hospital wants to set up a data warehouse containing various information about the business.  

One section of this data warehouse should focus on recording information related to each pet visit to the hospital.
For each of the visit, it is essential to record the various information represented in the previous tables about the pet, owner, and treatment.
It is also essential to record data about the date of the visit, including the day, month, and year.

Finally, the visit fee should be recorded. Note that there is no flat fee for each treatment, as the treatment cost can vary depending on the pet type.

 

Based on all this information, draw a star schema for this specific part of data warehouse, focusing on recording data related to each visit.






  1.  

 

About four hundred days of visit data are stored in the data warehouse, relating to at most one hundred pets and a maximum of eighty owners. Knowing that the veterinarian hospital has twenty different treatments, estimate the maximum number of rows in the fact table of the star schema in question a.





  1.  

 

Based on your start schema in a. , write a SQL query displaying the pet's name, pet type, treatment name, visit day and visit fees for all the pets who visited the hospital in October 2020. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning