Laboratory Exercise No 1
Laboratory Exercise No 1
The manager of the warehouse of Orange Corporation requires you to design and implement a database
system to assist with the administration of the company. The requirements collection and analysis phase of the
database design process based on the manager’s view has provided the following requirements specification:
1. Each supplier has a supplier number, name (name of the company), telephone number, address, and the
name of the salesman which consist of first name, middle name and last name (who will be contacted in
case of reordering of products). The supplier can have many telephone numbers and many address. Each
supplier will be identified through their single and unique supplier number.
2. A supplier can have many vehicles which will be used in delivering the products to the company. Each
vehicle has a plate number, driver’s name and type of vehicle.
3. Each time a supplier supplies a product the delivery date, delivery slip, quantity of supplied product and the
total amount will be recorded. Each supplier can supply different products to the corporation.
4. Customers may buy many and different products at the same time. The data stored each time a customer
buys a product includes OR number, date, quantity of products bought and the total amount.
5. The data stored on each product includes: product code, product name, description, and the quantity of
remaining products in the warehouse. The total number of products record stored by the corporation
should be available.
6. Each customer will have a unique customer number each time a customer buys a product.
1. The company sells a number of different furniture products. These products are grouped into several product
lines. The identifier for a product is Product_ID, while the identifier for a product line is Product_Line_ID.
Referring to the customer invoice, we identify the following additional attributes for product:
Product_Description, Product_Finish, and Unit_Price. Another attribute fro product line is Product_Line_Name.
A product line may group any number of products, but must group at least one product. Each product must
belong to exactly one product line.
2. Customers submit orders for products The identifier fro an order is Order-ID, and another attribute is
Order_Date. A customer may submit any number of orders, but need not submit any orders. Each order is
submitted by exactly one customer. The identifier for a customer is Customer_ID. Other attributes include
Customer_Name and Customer_Address.
3. A given customer order must request at least one product. Any product sold by Pine Valley Furniture may not be
requested on any order, or may be requested on one or more orders. An attribute associated with each order
and product is Quantity, which is the number of units requested.
4. Pine Valley Furniture has established sales territories for its customers. Each customer does business in one or
more of these sales territories. The identifier for a sales territory is Territory_ID. A sales territory may have any
number of customers, or may not have any customers doing business.
5. Pine Valley Furniture Company has several salespersons. The identifier for a salesperson is Salesperson_ID.
Other attributes include Salesperson_Name, Salesperson_Telephone, and Salesperson_Fax. A salesperson
serves exactly one sales territory. Each sales territory is served by one or more salespersons.
6. Each product is assembled from one or more raw materials. The identifier for the raw material entity is
Material_ID. Other attributes include Unit_of_Measure and Unit_Price. Each raw material may be assembled
into one or more products.
7. Raw materials are supplied by vendors. The identifier for a vendor is Vendor_ID. Other attributes include
Vendor_Name and Vendor_Address. Each raw material can be supplied by one or more vendors.
A vendor may supply any numver of raw materials, or may not supply any raw materials to Pine Valley Furniture.
An attribute of the relationship between vendor and raw material is Unit_Price
7. Pine Valley Furniture has established a number of work centers. The identifier for a work center is
Work_Center_ID. Another attribute is Location. Each product is produced in one or more work centers. A work
center may be used to produce any number of products, or may not be used to produce any products.
Required :
1. Create the ER Diagram of the problems above (A & B). Provide the following
a. ER Diagram (25pts)
c. Participation(10pts)