Write relational algebra expressions to retrieve the following information from the music database. Use the most appropriate operations for each query. In particular, use joins when appropriate.
(a) For each composer, give the composer’s name and the total number of pieces that (s)he has written, including composers who have not written any pieces.
(b) For each type of instrument, give the instrument type together with the total number of orchestral pieces which use that type of instrument.
a)
name, name g count(pous_num) ( Composer Piece)
b)
type, type g count(pous_num) ( Instrument Orchestral )
--- projection operation
---- join
g is group by
Do ask if any doubt. Please upvote
Write relational algebra expressions to retrieve the following information from the music database. Use the most appropriate operations for each query. In particular, use joins when appropriate. (a)...