Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Formulate relational algebra queries to find the following information: ( 1 ) Musician ( s ) ssn ( s ) and names ( s )
Formulate relational algebra queries to find the following information:
Musician
s
ssn
s
and names
s
who play
Saxophone
Musician
s
ssn
s
and names
s
who share the same address. Assume each musician has only one address.
Album
s
identifiers and Album
s
title
s
produced by the musician
s
named
Ben
Musician
s
ssn
s
and names
s
who play all instruments that are played by
Ben
Titles of albums produced by musicians who play both
guitar
and
piano
Musicians
ssn
s
and name
s
performed song with songID
or produced an album that contains that song.
Album
s
identifiers and Album
s
title
s
with the highest speed.
Song ID
s
and title
s
that are not performed by any musician.
Song ID
s
and title
s
performed by musician
s
who have produced at least two albums.
Musician
s
ssn
s
and name
s
with annual income more than $
and have not produced any album.
Note : Can't join more than two tables at once
you can rename two joined tables and join it with third table
use the schema below for reference
Relation Schemas
Musicians
ssn: string, name: string, annualIncome: real
Primary Key: ssn
Candidate Key: None
Foreign Key: None
Instruments
instrID: string, iname: string, musickey: string
Primary Key: instrID
Candidate Key: iname
Foreign Key: None
Plays
ssn: string, instrID: string
Primary Key:
ssn
instrID
Candidate Key: None
Foreign Key: ssn
instrID
SongsAppears
songID: string, authorSSN: string, title: string, albumIdentifier: string
Primary Key: songID
Candidate Key:authorSSN
Foreign Key: albumidentifier
Lives
ssn: string, aid: string, phone: string
Primary Key:
ssn
aid
Candidate Key: None
Foreign Key: ssn
aid
Place
aid: string, address: string, otherInfo: string
Primary Key: aid
Candidate Key: address
Foreign Key:None
Perform
songID: string, ssn: string
Primary Key:
songID
ssn
Candidate Key: None
Foreign Key: ssn
songID
AlbumProducer
albumIdentifier: string, ssn: string, copyrightDate: date, speed: real, title: string
Primary Key: albumIdentifier
Canidate Key: title
Foreign Key: ssn
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started