Answered step by step
Verified Expert Solution
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 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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started