Question: 2. 2a. Write appropriate SQL statements to create the tables specified in the figure (you may assign appropriate column types and lengths); also include important

2.
2a. Write appropriate SQL statements to create the tables specified in the figure (you may assign appropriate column types and lengths); also include important integrity constraints. Use your SQL statements to create the tables. [36]
2b. Insert sample data into your database tables (at least six records per table). Your data must illustrate the role of foreign keys and referential integrity. [18]
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
