Question: Note for submission: Please submit a pdf containing the solutions of problem 1, problem 2 and problem 3. No other type of submission is allowed.

 Note for submission: Please submit a pdf containing the solutions of

problem 1, problem 2 and problem 3. No other type of submission

Note for submission: Please submit a pdf containing the solutions of problem 1, problem 2 and problem 3. No other type of submission is allowed. For problem 1, you can take a screenshot or scanned image of your handwritten diagram. For problem 2 and problem 3, typed answers are needed in the space provided after questions. Only one submission per student is allowed. 1. A company database needs to store information about employees (identified by SIN, with salary and phone as attributes), departments (identified by DID, with dname and budget as attributes), and children of employees (with name and age as attributes). Employees work in departments; each department is managed by an employee; a child must be identified uniquely by name when the parent (who is an employee; assume that only one parent works for the company) is known. We are not interested in information about a child once the parent leaves the company. Draw an ER diagram using Crows Foot notation that captures this information. [10 Marks] 2. ER Diagram of Online Sales System Product Products PK OrderID DepartmentID Product Name Price Cutomer Order PK Customerid PK OrderID Full Name FK1 Customerid FK2 StoreID Sales Amount Date Time Store PK Storeld Store Name Consider the ER diagram of online sales system above. Based on the diagram answer the questions below, a) Based on the ER Diagram, determine the Foreign Key in the Product Table. Just mention the name of the attribute that could be the Foreign Key. [2 marks] b) Mention the relationship between the Order and Customer Entities. You can use the following: (4 Marks] 1:1, 1:M, M:1, 0:1, 1:0, M:0, 0:M c) Is there a direct relationship that exists between Store and Customer entities? Answer Yes/No? [1 Marks] Consider the ER diagram of online sales system above. Based on the diagram answer the questions below, a) Based on the ER Diagram, determine the Foreign Key in the Product Table. Just mention the name of the attribute that could be the Foreign Key. [2 marks] b) Mention the relationship between the Order and Customer Entities. You can use the following: (4 Marks] 1:1, 1:M, M:1, 0:1, 1:0, M:0, O:M c) Is there a direct relationship that exists between Store and Customer entities? Answer Yes/No? [1 Marks) d) Which one of the 4 Entities mention in the diagram can have a recursive relationship? (1 Marks) e) If a new entity Order_Details is introduced, will it be a strong entity or weak entity? If it is a weak entity, then mention its type (ID or Non-ID, also Justify why)? [2 marks] 3. Given the dependency diagram of attributes (C1,C2,C3,C4,C5) in a table shown in the following figure, (the primary key attributes are underlined) CI C2 C3 C4 CS 2/3 Create a database with multiple tables from attributes as shown above that showing PK, non-key attributes, and FK for each table? Assume the tables ar INF. (Hint: 3 tables will result after deducing 1NF-> 2NF -> 3NF] [5 Marks] Show the steps here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!