Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

COMP 3413-FA: Database Management Systems

Assignment-2

Fall, 2022

Problem Description

1. Create an Entity-Relationship (E-R) model for a new company that recently started a business where they buy highly discounted items in bulk from different compa- nies who are going out of business or need to get rid of additional items to save warehouse space. This new company has retail stores in big cities across the coun- try where they sell the items to individuals. They also do business as wholesalers where they sell items in bulk to local retailers in small cities. Therefore, they have two types of customers: individuals and small retailers. The company has four de- partments: purchase, warehouse, sales (retail and wholesale) and accounting. They employ five different types of employees: managers, accounting staffs, warehouse staffs, retail associates, and purchase agents. Each staff, agent and associate works under a manager of the respective department. Purchase agents hunt for discount items, and they get a commission based on the items they are successfully able to buy. You have freedom to make necessary assumptions about relations and at- tributes to create a realistic model.  However, you must incorporate at least one composite and one multivalued attribute in the model.

2. Draw your model in LucidChart or any other similar software. However, you must follow the notations and conventions that have been primarily demonstrated in the textbook and the lecture slides. You will not receive any marks if you fail to follow this. In the design, identify all primary keys and mapping cardinalities correctly.

3. Convert all entity and relationship sets into relation schemas. You do not have to draw the schema. Just write the schema names followed by attribute names. E.g., schema1(att1,att2,att3). You do not need to identify foreign keys.

4. If any of the relation schema representing a relationship set is redundant, remove that. Mention your justifications.

5. After removing redundancies, for each relation schema list a reasonable set of func- tional dependencies that should exist.

What to submit?

 E-R model drawn using Lucidchart (5 Marks).

Initial set of relation schemas (5 Marks).

Reduced set of relation schemas (with explanations) (5 Marks).

 Functional dependencies for each schema in the reduced set (5 Marks).