Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Consider the following relation schemas. Primary keys are underlined. Musicians ssn, name, Registers the ssn of musicians and their annuallncome)...
Problem 1: Use (1) relational algebra, (2) calculus and (3) SQL to express the following queries.
- Find the instruments (InstID) played by a musician named 'John'.
- Find the instruments (InstID) played by every musicians whose name is 'John'
- Find the instruments (InstID) played only by musicians whose name is 'John',
- i.e., are not played by any musician with a different name.
- Find the titles of the albums produced by musicians who play guitar or piano
- (iname='guitar' or 'piano').
- Find the musicians who played both song1 (songID='song1') and song2
- (songID='song2').
- Find the musician(s) with the highest annual income.
- Find the musicians who earn more than every other musician.
Problem 2: Use SQL to express the following queries:
- Find all the pairs of musicians (give names) who share an address.
- Find the songs that are not performed by any musician.
- Find the musicians (names) who played all the songs written by 'John' (musician
- author name = 'John').
- Find the musicians who perform a song they have authored
- Find the musicians who perform all songs they have authored
- Find the musicians who have authored all songs they perform
- Find the musicians who perform only songs they have authored, i.e., do not
- perform any songs they have not authored.