Question: This assignment asks you to design ERD based on business requirements and translate ERD into relational models. You need to use your business domain knowledge
This assignment asks you to design ERD based on business requirements and translate ERD into relational models. You need to use your business domain knowledge and make some reasonable assumptions to derive business rules. The skills needed to complete this assignment are introduced in the lecture slides, videos and tutorial in this week. This assignment builds on the examples in the lecture videos but asks you to extend the techniques. Understanding the examples in the lecture part is key for success but you will also have to think and explore.
Automata Inc. produces specialty vehicles by contract. The company operates several departments, each of which builds a particular vehicle, such as a limousine, a truck, a van, or an RV.
Before a new vehicle is built, the department places an order with the purchasing department to request specific components. Automatas purchasing department is interested in creating a database to keep track of orders and to accelerate the process of delivering materials.
The order received by the purchasing department may contain several different items. An inventory is maintained so that the most frequently requested items are delivered almost immediately. When an order comes in, it is checked to determine whether the requested item is in inventory. If an item is not in inventory, it must be ordered from a supplier. Each item may have several suppliers.
Given that functional description of the processes encountered at Automatas purchasing department, do the following:
1. Define a set of business rules based on the case description. Note, you may need to make some assumptions to generate the business rules. As long as your assumptions are reasonable, you will get full points.
Example: One supplier can offer zero or many items.
2. Identify all of the main entities from the business rules. Give a list of words that represent entities.
Example: Supplier, Item
3. Identify all of the relations among entities. For each relationship, describe the involved entities, and the relationship type, e.g. 1:M, M:N or 1:1.
Example: Supplier: Item N:M
4. Draw the ERD. Please give at least three attributes for each entity.
5. Convert the ERD to relational tables and draw the tables with column names. Please also mark PK and FK (If there is one) in the table.
Example:
| ItemID (PK) | ItemName | ItemQuantity |
|
|
|
|
|
|
|
|
Give three example queries that can be obtained from the database and design the SQL code. Example:
Query: find all items that have 0 inventory.
SQL: Select *
From Item
Where ItemQuantity=0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
