Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read the following scenario and answer ALL questions Include SCREENSHOTS OF SQL STATEMENTS JJ Pet Shop Sdn. Bhd. hires you to be their Project Manager

image text in transcribed

Read the following scenario and answer ALL questions Include SCREENSHOTS OF SQL STATEMENTS JJ Pet Shop Sdn. Bhd. hires you to be their Project Manager cum Database Designer for their new project, a pet boarding management system. Assume you have normalized the raw data into the 3rd Normal Form. Below shows the Pet, owner, Branch and Boarding tables. PET (id, name, type, breed, owneric, dietRemark) OWNER (ic, name, address, phoneNo, points) BRANCH (id, city, capacity) BOARDING (id, petID, branchid, datein, dateOut) (vii) Write an SQL statement that display the longest boarding time. (vii) Write an SQL statement that count all boarding in the year 2000. (ix) Write an SQL statement to display the pet's ID, pet's type, the city's name of the branch and the number of the total days the pet's been boarded in the branch. Sort your answer base on the boarding ID

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

6. Conclude with the same strength as in the introduction

Answered: 1 week ago

Question

7. Prepare an effective outline

Answered: 1 week ago