Question: 3. Write SQL statements to realize the following: 3a. List all registered musicians from USA or JAM (where USA and JAM are abbreviations for United

3.
Write SQL statements to realize the following:
3a. List all registered musicians from USA or JAM (where "USA" and "JAM" are abbreviations for United States and Jamaica). [03]
3b. Give the ENO of every ensemble that includes a SAXAPHONE or CLARINET player. [03]
3c. Give the ENO of every ensemble that includes a SAXAPHONE but not a CLARINET player. [04]
3d. List all compositions (CNO) by MOZART [04]
3e. List all performances (PNO CNO MNO & PCOUNTRY) of compositions in the country of origin. [06]
3f. Give the ENO of every ensemble that includes a SAXAPHONE or CLARINET player, but not both. [06]
3g. Find CNO for compositions which have been performed in USA. [03]
3h. List countries in which MOZART's compositions have been performed. [03]
3i. Give ENAME of ensembles whose manager is AMERICAN, JAMAICAN, or RUSSIAN. [03]
4. Define and create SQL views to realize the above requirements (of question 3). [36]
Music Database Relations Musicians (Mog. MName, MDOB MCountry} PK (Mnol Compositions (Co. CTitle CMno. CDate} PK [Cng]: FK [CMng references Musicians) Ensembles {Eno, EName ECountry, EMnoMor} PK [Eno]; FK [EMnoMar references Musicians) Performances (Png. PDate. Pone PCity. PCountry Peno_CKs (PDate. Penol. Prel; FK [PCno references Compositions); FK [PEno references Ensembles] Ensemble Members (EmEng. EmMno, Emlostrument) PK [EmEng. Emunol: FK [EmEng references Ensembles); FK EmMno references Musicians)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
