Relational algebra and tuple relational calculus


Question:

Relational Algebra and Tuple Relational Calculus

Consider the following relation schemas . Primary keys are underlined.

Use (1) Relational Algebra and (2) Tuple Relational Calculus to express the following queries:

1. Find the instruments (InstID) played by musician named 'John'.

2. Find the titles of the albums produced by musicians who play guitar or piano (iname='guitar' or 'piano').

3. Find the musicians who played both song1 (songID='song1') and song2 (songID='song2').

4. Find the musician(s) with the highest annual income.

5. Find all the pairs of musicians (give names) who share the same addresses.

6. Find the songs that are not performed by any musician.

7. Find the musicians (names) who played all the songs written by 'John' (musician author's name = 'John')

550_Relational schema.jpg

Solution Preview :

Prepared by a verified Expert
Algebra: Relational algebra and tuple relational calculus
Reference No:- TGS01937034

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)