Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

J] 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) 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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions