Computer Science Homework Solutions
Problem
#120452

Relational Databases

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

Attached file(s):
Attachments
#2b.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.)

#2b.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.

Musician(s) ssn(s) who play 'Saxophone'.

Musicians' names who share the same address. (Assume each musician has
only one address)

Album(s) title(s) produced by musician named 'Richard'.

Musician(s) name(s) who play all instruments played by 'Richard'.

Titles of albums produced by musicians who play 'guitar' and 'piano'.
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$11.97)
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