Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Management - Relational Algebra Question StaffMember(Uniqname, FirstName, LastName, Role, CityID) City (CityID, CityName, StateOrProvince, Country) Fruit(FruitID, Name, VitaminC) Enjoys(Uniqname, FruitID) Note: The VitaminC attribute

Database Management - Relational Algebra Question

image text in transcribed

StaffMember(Uniqname, FirstName, LastName, Role, CityID) City (CityID, CityName, StateOrProvince, Country) Fruit(FruitID, Name, VitaminC) Enjoys(Uniqname, FruitID) Note: The VitaminC attribute of the Fruit table represents the milligrams of vitamin C that the fruit contains. The CityID field of the StaffMember table refers to the hometown city of staff members. The Enjoys table stores data on which staff members enjoy which fruits. Given the above schema, write relational algebra statements for the following statements: A. Find the first and last names of all staff members whose hometown city is in the country China and who enjoy the fruit whose name is durian (5 points) B. Find the name and country of all cities that are NOT a hometown of any staff member whose role is GSI. (4 points) C. Find the uniqnames of all staff members who enjoy the fruit named "Mango' or are from the state of Ohio'. (4 points)

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