Question

Consider the following relational database to manage concert and ticket sales. The relations are artist, concert,...

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?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer :

1)

Schema di gom er on afabose Atist Concert tyPe Salar Venuename (Pk) Venue venuedane (Pk) ad dren Venuename(fe seeting Cafn am se atrium ben ーAddren Chediadnd

2)

The database scheme will allow one fan to have multiple tickets for a given concert. If we see the table Fan there the fanID is the primary key but where as in the ticket table the fanid is acting as a foreign key. So multiple entries can be there referencing the foreign key.

3)

The database schema will allow multiple artists to play in a given venue on a particular date. The venue scheme stores the artist name who are going for the venue. So the artist can be more than one in particular venue for the particular date.

4)

Yes the date attribute in ticket be a foreign key referencing only the date attribute in concert. This is because the ticket contains the date for the venue when the concert is and hence the date in the concert table must be same to match with the values.

5)

A foreign key in ticket referencing venue NOT provide any additional constraints this is because for a particular ticket the venue will be fixed. Hence no additional constraints are needed.

Add a comment
Know the answer?
Add Answer to:
Consider the following relational database to manage concert and ticket sales. The relations are artist, concert,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please help me with this question. I would really appreciate it. Please explain briefly I am...

    Please help me with this question. I would really appreciate it. Please explain briefly I am trying to prepare for a test. 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)...

  • Suppose a database has the following three relations. Museum (mid: integer, name: string, address: string, website:...

    Suppose a database has the following three relations. Museum (mid: integer, name: string, address: string, website: string) Displays (museumID: integer, artID: integer, startDate: date) ArtItem (aid: integer, title: string, weightPnd: integer, type: string) Artist (pid: integer, firstname: string, lastname: string, birthdate: date, deathdate: date) Creates (artistID: integer, artID: integer, year: integer) (The "bit" data type stores 0 or 1. False or true. Booleans.) "museumID" in Displays is a foreign key referencing "mid" in Museum. "artistID" in Creates is a foreign...

  • A management organization of shows, concert halls, and ticket sales for shows manages a database with...

    A management organization of shows, concert halls, and ticket sales for shows manages a database with the following relational schema: Show (show_id, title, start_date, duration, singer, hall_id) Concert (concert_id, date, hour, show_id) Hall (hall_id, name, address, capacity) Express the following SQL queries in relational algebra: What are the singers who performed at least one concert in all halls? SELECT singer FROM Show S1 WHERE NOT EXISTS (SELECT * FROM Hall H WHERE NOT EXISTS (SELECT * FROM Show S2 WHERE...

  • Consider the following relations for a database that keeps track of student enrollment in courses and...

    Consider the following relations for a database that keeps track of student enrollment in courses and books adopted for each course. -------------------------------------------------------------------------------------------------------- STUDENT(Ssn,Name,Major,Bdate) COURSE(Course#,Cname,Dept) ENROLL(Ssn,Course#,Quarter,Grade) TEXTBOOK(Book_isbn,Book_title,Publisher,Author) BOOK_ASSOC(Course#,Quarter,Book_isbn) ------------------------------------------------------------------------------------------------------------------------------- Having that a relation can have zero or more foreign keys and each foreign key can refer to different referenced relations. Specify the foreign keys for this schema.

  • Consider the following relations for a database that keeps track of automobile sales in a car...

    Consider the following relations for a database that keeps track of automobile sales in a car delarship (OPTION refers to some optional equipment installed on an automobile); CAR (Serialno, Model, Manufacturer, Price) OPTION (Serialno, optionname, Price) SALE (Salesperson_id, Serialno, Date, Sale_Price) SALESPERSON (Salespersn_id, Name, Phone) First specify the foreign keys for this schema, stating any assumptions you make. Next, populate the relations with a few sample tuples, and then give an example of an insertion in the SALE and SALESPERSON...

  • Consider a database schema consisting of two tables, Employee (ID, Name, Address), Project(PID, Name, Deadline), Assign...

    Consider a database schema consisting of two tables, Employee (ID, Name, Address), Project(PID, Name, Deadline), Assign (EID, PID, Date). Assign.EID is a foreign key referencing employee's ID and Assign.PID is a foreign key reference the project. Write the SQL query for 1. Find Projects that are not assigned to any employees(PID and Name of the project).

  • Need help completing this schema below. 2. (3.14 Elmasri-6e)- Consider the following six relations for an...

    Need help completing this schema below. 2. (3.14 Elmasri-6e)- Consider the following six relations for an order-processing database application in a company CUSTOMER (Cust#, Cnam City) ORDER (Orderf., Qdate Custf. QrdAmt ORDER ITEM (Order, Item#, Qty) ITEM Citen Unitaptice) SHIPMENT (Order Warehouse Ship. date) WAREHOUSE (Warehouses City) Here, Qrd Amt refers to total dollar amount of an order, Qdate is the date the order was placed; Ship.date is the date an order (or part of an order) is shipped from...

  • Write the following query in SQL Suppose a database has the following three relations Movie (mid:...

    Write the following query in SQL Suppose a database has the following three relations Movie (mid: integer, title: string, director: string, relcaseDate: date) PlaysAt (theaterID: integer. movieId:integer. showDate: date) Theater (tID: integer, name: string, phone: string, screencount: integer) movielD" in PlaysAt is a foreign key referencing "mid" in Movie. "theaterlD" in PLaysAt is a foreign key referencing "tID" in Theater.

  • Question 3 refers to the relational database with a schema described below: The hospital database contains...

    Question 3 refers to the relational database with a schema described below: The hospital database contains information about the treatments of patients performed by the doctors. The database also contains information on the prescriptions ordered by the doctors. The schemas of relational tables, the meanings of attributes and specifications of primary, candidate, and foreign keys are given below. HOSPITAL HospitalCd Name Address Estate PostalCode EstablishedDate Hospital Code Name of the hospital Address of the hospital The estate where the hospital...

  • Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course.

    Question: Consider the following relations for a database that keeps track of student enrollment in courses and the books adopted for each course. 1- Draw an ER diagram of ONLINE COURSE REGISRATION database, that captures all the given below requirements. Specify key attribute(s) of each entity set. For each relationship set, specify structural constraints and participation constraints. a. For each USER, the portal maintains user ID, Name, E-mail. Each user has a unique ID. Name is a Composite attributes with Frame, Midname,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT