Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JJ Pet Shop Sdn. Bhd. hires you to be their Project Manager cum Database Designer for their new project, a pet boarding management system.

JJ Pet Shop Sdn. Bhd. hires you to be their Project Manager cum Database Designer for their new project, a

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, branch ID, dateIn, dateOut) 1. Write an SQL statement that sorts the owner details based on the points. 2. Write an SQL statement to display the boarding ID, pet's ID, pet's type, and the city's name of the branch during the boarding. Sort your answer base on the boarding ID. 3. Write an SQL statement that display all branches that can accommodate 50 or more pets per day.

Step by Step Solution

3.40 Rating (162 Votes )

There are 3 Steps involved in it

Step: 1

1 SQL statement to sort owner details based on points sql SELECT FROM OWNER ORDER BY points 2 ... 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

Modern Systems Analysis And Design

Authors: Joseph Valacich, Joey George

8th Edition

0134204921, 978-0134204925

More Books

Students also viewed these Programming questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago