

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Fall 2009 CS127 Homework #2 Due: September 28 14:
The Brutal Police State of Zdonik has a rigid societal structure, people are organized into several different castes based on knowledge of databases and contributions to the codebase of DBMSs: Database Professor, Database Pro- grammer, Database Administrator, and Database Student. The laws of the society are laid out in Stan’s Code:
Draw the E-R Diagram for Stan’s Kingdom. Give the relational schema.
For each table in the schema of the above problem, identify subset of attributes which form a primary key or foreign key. Make it clear when the primary key for the table is the union of multiple attributes.
Fall 2009 CS127 Homework #2 Due: September 28 14:
Stan is launching a webapp for musicians to share their instruments with other starving bluegrass artists. Suppose that each musician can’t afford to own one of each instrument. In fact, we will call the true owner and maintainer of each instrument a “custodian.” Give a reasonable E/R diagram and relational schema for the following problem:
For each table in the above problem, identify the attribute as a primary key, foreign key, or other attribute. Make it clear when the primary key for the table is a concatenation of multiple columns.