$25
1. Following is the data requirements for an art museum:
· The museum has a collection of ART_OBJECTS . Each art object has a unique IDNo, and Artist, if known, a Year (when created, if known) a Title and a Description. The art objects are categorized in several ways, as discussed below.
· ART_OBJECTS are categorized based on types. There are three main types, Painting, Sculpture and Statue, plus an ‘Other’ category for those that don’t fit into one of the main types.
· A PAINTING has a PaintType (oil, watercolor, etc) a material on which it is CrawnOn (paper, canvas, wood) and Style (modern, abstract etc)
· A SCULPTURE or a STATUE has a Material from which it was created (wood, stone, etc) Height, Weight and Style.
· An art object in the OTHER category has a Type(print, photo, etc) and Style.
· ART_OBJECTS are also categorized as PERMANENT_COLLECTION, which are owned by the museum (DateAcquired, whether it is OnDisplay or Stored and Cost) or BORROWED, which has information on the Collection (where it was borrowed from), DateBorrowed, and DateReturned.
· ART_OBJECTS also have information describing their country-culture using information on country/culture of Origin (Italian, Egyptian, American, Indian etc) and Period(Renaissance, Modern, Ancient)
· The museum keeps track of ARTISTS’s information, if known: Name, DateBorn, DateDied, CountryOfOrigin, Period, MainStyle and Description. The name is assumed unique.
· Different EXHIBITIONS occur, each having a Name, StartDate and EndDate. EXHIBITIONS are related to all the art objects that were on display during the exhibition.
· Information is kept on other COLLECTIONS with which the museum interacts, including Name (unique), Type (museum, personnel etc), Description, Address, Phone and ContactPerson.
Draw an EER diagram for this application. Discuss any assumptions you make.
2. Consider the following set of requirements for an investment company database. Draw an ER or EER diagram that captures the details specified below. State your assumptions if any.
o The investment company has several branches. Each branch has a BranchId (which is unique), address, phone and a manager.
o Each branch has a number of customer accounts, each of which has a unique account number, owner and an employee who acts as portfolio advisor. An account has only one owner. An employee may be the advisor for many accounts.
o Each person (customer or employee) has SSN, name, address, and phone. Every customer has exactly one account. Each person has a unique SSN. Due to conflict of interest, employees are prohibited from having an account with the investment company.
o Each account has within it a number of stock holdings: stock symbol, name, and quantity. The quantity is further broken into lots that were purchased together. Each lot has quantity, purchase price per unit share, and date of purchase. For example, an account may have 500 shares of MSFT (Microsoft Corp), which were purchased in 2 lots: 200 shares at $25.75/share on 9/9/11, and 300 shares at $26.20/share on 10/4/11.
3. Map the ER/EER diagram in your answer to previous question into the relational model.
4. Consider the ER diagram in following figure. Map the given conceptual schema to relational database schema.
5. Consider the EER diagram in below figure for a car dealer. Map the EER schema into a set of relations. For the VEHICLE to CAR/TRUCK/SUV specialization, consider the four options (8A, 8B, 8C, 8D) and show the relational schema design for all options.
It is optional to use an ER diagram tool for drawing ER/EER diagrams.