Computer Science Homework Solutions
Problem
#120453

Relational Databases

Consider the following relation schemas of a music store database. See attached file for full problem description.

Attached file(s):
Attachments
#2c.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

#2c.doc
Consider the following relation schemas of a music store database.

Relation Schemas Meaning and additional information

Musicians(ssn, name, annualIncome) Registers the ssn of musicians and
their names and annual incomes.

Instruments(instrID, iname, key) Registers instruments.

Plays(ssn, instrID) Registers which musicians play which instruments

SongsAppears(songID, authorSSN, title, albumIdentifier) Registers songs
and which albums they appear. Every song must have exactly one author
who is a musician, and appears in exactly one album.

Lives(ssn, address, phone) Registers where musicians live and which
phones they use.

Place(address, otherInfo) Register all addresses.

Perform(songID, ssn) Register which songs are performed by which
musicians

AlbumProducer(ssn, albumIdentifier, copyrightDate, speed, title)
Registers albums and their producers (who are musicians).

Formulate relational algebra queries to find the following information.
Note that primary keys are underlined in the table above.

Musicians (ssn) performed song with songID 544 or produced an album that
contains that song.

Album(s) identifier(s) with the highest speed.

Songs IDs that are not performed by any musician.

Songs titles performed by musician who have produced at least two
albums.

Musicians names with annual income more than $50,000 and have not
produced any album.
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • relational queries.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse