Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational database to manage concert and ticket sales. The relations are artist, concert, venue, seat, ticket, and fan. The schemas for these

Consider the following relational database to manage concert and ticket sales. The relations are artist, concert, venue, seat, ticket, and fan. The schemas for these relations (with primary key attributes underlined) are:

Artist-schema = (artistname, type, salary)

Concert-schema = (artistname, date, venuename, artistfees)

Venue-schema = (venuename, address, seating_capacity)

Seat-schema=(venuename, row, seatnumber)

Ticket-schema = (fanID, date, venuename, row, seatnumber)

Fan-schema = (fanID, name, address, creditcardno)

Where:

artistname is a unique name for the artist (because of trademark/copyright rules no two artists have the same name).

type is an attribute whose value is chosen from music, comedy, juggling, or other

artistfees is a real number greater than 0

fanID is a unique ID given to a customer

creditcardno is a 16 digit credit card number starting with a 4 or a 5. a)

1 Draw a schema diagram for this database. Be sure to indicate all foreign keys implied by the attribute names and primary keys in the relation schemas.

2) Does this database schema allow for one fan to have multiple tickets for a given concert? Justify.

3) Does this database schema allow for multiple artists to play a given venue on a particular date? Justify.

4) Could the date attribute in ticket be a foreign key referencing only the date attribute in concert? Justify.

5) Why would a foreign key in ticket referencing venue NOT provide any additional constraints?

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

Entity Alignment Concepts Recent Advances And Novel Approaches

Authors: Xiang Zhao ,Weixin Zeng ,Jiuyang Tang

1st Edition

9819942527, 978-9819942527

More Books

Students also viewed these Databases questions