Question: This is a Databases question regarding Relational Algebra You are given four tables: ---- Painting ( paintingId , title, artistId, year) Artist ( artistId ,

This is a Databases question regarding Relational Algebra

You are given four tables:

----

Painting (paintingId, title, artistId, year)

Artist (artistId, name, phone, country)

PaintingsForSale (paintingId,price)

Museum (museumId, museumName, city, country)

Exhibits (paintingId, musemId, fromDate, toDate)

----

Now write queries using relational algebra (you may only use cartesian product (X), selection (), projection (), natural join (), and theta join..) for:

1. Show the title and year of each painting.

2. Show the artist names from country, USA.

3. Show the titles of the paintings that had year before 1998.

4. Show the museum names in UK that are showing the painting with id P1

5. Show the titles of the paintings, artist names and museum names and countries where they are exhibited.

6. Show the titles of the paintings and years by artist, A.Smith

7. Show the title of the oldest painting.

8. Show the tiles and the artist names of the paintings with watercolor medium.

9. Show the names of museums with no exhibits.

10. Show the title of the painting with the highest price.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!