Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In a simple database, there are six (6) tables. The database keeps track of restaurants, their owners, customers and their favorite foods. In particular, an

In a simple database, there are six (6) tables. The database keeps track of restaurants, their owners, customers and their favorite foods. In particular, an owner can own several restaurants. In each restaurant different types of foods are served. Different customers of the restaurant like different types of foods. The database schema is as follows:

image text in transcribed

Provide a relational algebra for the following queries:

a) List the name of the restaurants whose owners live in Baton Rouge.

b) List the name of owners whose restaurants serve food type A.

DATABASE: RESTAURANT (Restaurant_name[pk], City, Phone, Owner_SSN [fk]) FOOD (Food_name[pk], Type, Country) CUST (SSN(pk], Name, Birth_year, Fav_food[fk], Gender) LIKES (SSN [fk], Food[fk]). SERVES (Restaurant[fk], Food[fk]) OWNER (SSN [pk], Name, City, Address, Phone)

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

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions