# (Homework Solution): The following queries refer to the Dog Food Recommendation Database from Homework #1,

( Relational Algebra )

The following queries refer to the Dog Food Recommendation Database from Homework #1, The tables from the answer to Homework #1 are repeated on Page 2. 3. Find all dogs that weigh over 100 pounds. The answer will have columns, Dog Name, Dog Gender, 4. Find all foods manufactured by the preferred manufacturer of “Paula Thompson”(CName) The correct 5. Retrieve all dogs that are above the max weight for any of their breeds. The correct answer will have 6. Determine the manufacturers that are NOT the preferred manufacturer of anyone. The correct answer 7. Find all customers who have a “Border Collie” (Breed Name) The correct answer will have columns C 8. Find the tallest breed. HINT: the max height for a male is aways greater than the max height of a and Dog Weight. e columns Food Name and Package Weight. columns Dog Name, Dog Gender, and Dog Weight will have columns Manufacturer Name and M Phone# Name, C Email, Dog Name, and Dog Gender female. The correct answer will have columns Breed Name

5- select Dog_Name, Dog_Gender, max(Dog_Weight)

From Dog d, Is_Of i

Where d.CID=i.CID

Group by Breed_Name,dog_name,dog_gender,dog_weight;

6-select manufacturer_name, M_Phone#

From Manufacturer m,food f,Customer c,tried t

Where m.Manufacturer_name=f.manufacturer_name and f.food_name=t.food_name and t.cid=c.cid and Prefers_Manufacturer_name is null;

7-select C_name, c_Email,Dog_name,Dog_Gender

From customer c , dog d ,Breed b,is_of i

Where b.breed_name=’Border Collie’ and c.cid=d.cid and b.breed_name=i.breed_name and i.cid=c.cid;

8-select Breed_name

From breed

Group by breed_name

Having max(male_max_height);

5- select dog_name,gender,height from table dog and put a equi join condition to join two tables and grouped them as breed_name,dog,name,gender,weight of the dog

6-select name of the manufacturer and phn no from manufacturer table and put a equi join to join tables and put a condition that prefer manufacturer is null so that we can find who don’t have preferred manufacturer.

7-select name email,dog name, gender from dog and customer table and put a where condition with equi join condition

8-select breed name from breed grouped them as breed name which is having maximum height from male.

Order NOW for a 10% Discount
Pages (550 words)
Approximate price: -

Why Us?

Top Quality and Well-Researched Papers

All ourbpapers are written from scratch. In fact, Clients who ask for paraphrasing services are highly discouraged. We have writers ready to craft any paper from scratch and deliver quality ahead of time.

Our writers keeps you posted on your papers progress - providing you with paper outline/draft. You are also at liberty to communicate directly with your writer.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time, in many cases quite ahead of time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

## Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.