Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose a database has the following three relations. ArtItem (aid: integer, title: string, weightPnd: integer, type: string, pricePaid: integer) ExhibitsIn (artID: integer, exhibitID: integer, insuranceCost:

Suppose a database has the following three relations. ArtItem (aid: integer, title: string, weightPnd: integer, type: string, pricePaid: integer) ExhibitsIn (artID: integer, exhibitID: integer, insuranceCost: integer, deliveryDate: date, homeMuseum: integer) Exhibition (eID: integer, title: string, curatorName: string, specialFee: integer) Visits(exhibitionID: number, lat: string, long: string, startdate: date, enddate: date) Location(latitude: string, longitude: string, name: string, address: string, country: string, phonenumber: string) (The "bit" data type stores 0 or 1. False or true. Booleans.) "lat, long" in Visits are a foreign key referencing "latitude, longitude" in Location. "exhibitionID" in Visits are a foreign key referencing "eID" in Exhibition. "exhibitID" in ExhibitsIn is a foreign key referencing "eid" in Exhibition. "artID" in ExhibitsIn is a foreign key referencing "aid" in ArtItem. The art item weights are measured in pounds.

You may assume simple boolean comparisons (<, >, ) work on dates.

Write the following queries in relational algebra. 1. Find the titles and curator names for exhibitions that will include an art item titled "Tutankhamun's golden mask." 2. Find the exhibition titles and exhibition identifiers, and location names, for exhibitions that have been displayed at location in the country "Canada" or at a location in the country "Japan".

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

What did not work?

Answered: 1 week ago

Question

| What are the values that are most important to me?

Answered: 1 week ago