Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this question, consider the five relation schemas with the primary key underlined: artist ( id , name, status ) work ( id , name,

For this question, consider the five relation schemas with the primary key underlined:
artist (id, name, status)
work (id, name, work_type, price)
gallery (id, name, location)
exhibition (id, gallery_id, start_date, end_date)
transaction (id, buyer, work_id, date, price, status)
The attributes in artist mean the following: id is a unique identifier for an artist; name is the name of the artist, and status takes two values, active or inactive.
The attributes in work mean the following: id is a unique identifier assigned to the work of art (not the artist); name is the name of the work such as Mona Lisa; work_type is the type of work such as painting, sculpture, photograph, etc.; and price is the appraised price of the work of art.
The attributes in the gallery table are as follows: id serves as a unique identifier for each gallery; name is the name of the gallery; location is the physical location of the gallery.
In the exhibition table, id is a unique identifier for each exhibition. gallery_id is a foreign key that refers to the id in the gallery table and indicates which gallery is hosting the exhibition. start_date and end_date indicate the duration of the exhibition.
In the transaction table, id is a unique identifier for each transaction involving the sale of a work of art. buyer is the name of the individual or entity purchasing the work. work_id is a foreign key that refers to the id in the work table and identifies which piece of art is being sold, purchased, or refunded. Thus, it can hold a negative value in the price attribute. date is the date the transaction occurred, and price is the selling price of the artwork
a.[20 points] For this question, assume that a single artist creates a work of art but can create many works of art, and each artist may have none, one or more works of art. Modify the artist and/or work relation(s), possibly adding a third relation, if necessary, so that two tables can be properly joined together. For this question, provide answers to the following questions using the notation/diagrams explained in class. All relations should be provided and primary keys, foreign keys and relationships properly presented in the database schema/diagram.
(i) The potentially modified relation schemas for artist and work and, if necessary, a third relation schema with the primary key underlined in each relation schema.
(ii) The relational diagram for your relations with the arrows appropriately representing the foreign keys.
(iii) The Entity-Relationship Diagram using Crows Foot diagram notation for your modified relations.
(iv) The Entity-Relationship Diagram using Chens diagram notation for your modified relations
b.[20 points] For this question, assume one or more than one artist can create a work of art or many works of art. Note also, as above, that an artist may not have created any work of art. Modify the artist and/or work relation(s), possibly adding a third relation, if necessary, so that two tables can be properly joined together. For this question, provide answers to the following questions using the notation/diagrams explained in class. All relations should be provided and primary keys, foreign keys and relationships properly presented in the database schema/diagram.
(i) The potentially modified relation schemas for artist and work and if necessary a third relation schema with the primary key underlined in each relation schema.
(ii) The relational diagram for your relations with the arrows appropriately representing the foreign keys.
(iii) The Entity-Relationship Diagram using Crows Foot diagram notation for your modified relations.
(iv) The Entity-Relationship Diagram using Chens diagram notation for your modified relations.
c.[20 points] For this question, assume that one or more artists can create a work of art, or many works of art. Note also, as above, that an artist may not have created any work of art. In addition, galleries host exhibitions featuring works of art, and transactions for these works occur over time. Modify the artist, work, gallery, exhibition, and transaction relations, possibly adding additional relations if necessary, so that the tables can be properly joined together.
(i) Provide potentially modified relation schemas for artist, work, gallery, exhibition, and transaction, and add any necessary new relation schemas with the primary key underlined in each relation schema.
(ii) Create a relational diagram with arrows appropriately representing the foreign keys across all tables.
(iii) Develop an Entity-Relationship Diagram using Crows Foot diagram notation for your modified relations.
(iv) Create an Entity-Relationship Diagram using Chens diagram notation for your modified relations.

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions