Anda di halaman 1dari 3

U08049 DATABASE DESIGN

ASSIGNMENT
CASE STUDY You have just been employed by the ROBCOR Trucking Company to develop a database. To gain a sense of the databases intended functions, you have spent some time talking to ROBCORs employees and you have examined some of the forms used to track driver assignments and truck maintenance. Your notes include the following observations; Some drivers are qualified to drive more than one type of truck operated by ROBCOR. A driver may, therefore, be assigned to drive more than one truck type during some period of time. ROBCOR operates several trucks of a given type. For example, ROBCOR operates two panel trucks, four 0.5-ton pick-up trucks, two single axle dump trucks, one double-axle truck, and one 16-wheel truck. A driver with a chauffers license is qualified to drive only a panel truck and a 0.5-ton pick-up truck and may, thus be assigned to drive any one of six trucks. A driver with a commercial license with an appropriate heavy equipment endorsement may be assigned to drive any of the nine trucks in the ROBCOR fleet. Each time a driver is assigned to drive a truck, an entry is made in a log containing the employee number, the truck identification, and the sign-out (departure) date. Upon the drivers return, the log is updated to include the sign-in (return) date and the number of driver duty hours. If trucks require maintenance, a maintenance log is filled out. The maintenance log includes the date on which the truck was received by the maintenance crew. The truck cannot be released for service until the maintenance log release date has been entered and the log has been signed off by an inspector. All inspectors are qualified mechanics, but not all mechanics are qualified inspectors. Once the maintenance log entry has been made, the maintenance log number is transferred to a service log in which all service log transactions are entered. A single maintenance log entry can give to multiple service log entries. For example, a truck might need an oil change as well as a fuel injector replacement, a brake adjustment, and a fender repair. Each service log entry is signed off by the mechanic who performed the work. To track the maintenance costs for each truck, the service log entries include the parts used and the time spent to install the part or to perform the service. (Not all service transactions involve parts. For example, adjusting a throttle linkage does not require the use of a part). All employees are automatically covered by a standard health insurance policy. However, ROBCORs benefits include optional co-paid term life insurance and disability insurance. Employees may select options, one, or none.

Please note that the above scenario is intentionally brief, to make students produce a sensible draft set of requirements based on the level of understanding. In reality, more information may be needed to establish a clear set of requirements. TASK 1 [25%] Using the information from the scenario, develop a detailed Enhanced EntityRelationship (EER) model to reflect the data requirements for the ROBCOR Company. Your should state clearly the assumptions that you made in developing the diagram; Identify all the real world entities. Give a candidate key and suitable attributes for each entity. Indicate clearly the multi-valued attributes. Show clearly the weak entities and determine their relationship with the owner entities; Identify any super/ subtype entities available in the given scenario. Identify the constraints on the generalization/specialization as either disjoint or overlapping; Identify the relationships among the entities. Indicate clearly the cardinality of each relationship. Show the attributes for each relationship, if any. Give any additional semantic feature of the relationships such as total participation or partial participation. Draw a complete EER diagram.

TASK 2 [25%]

Use the EER from Task 1 to derive a relational database schema. Explain and justify the types of integrity constraints that will be imposed on the proposed database. TASK 3 [25%] Use any relational database software to implement the relations. Populate the relations in the database with sample data (at least 5 records).

TASK 4

[15%] (a) Write relational algebraic expressions for the following queries. (i) (ii) Find the list of drivers along with the license type for which they are qualified to drive any of the trucks in the ROBCORs fleet. Find the list of mechanics that performed the maintenance work that includes parts used, time spent to install the part or the service performed along with the costs for each truck in the month of March 2012.

(b)

Rewrite the relational algebraic expressions in SQL and test the results.

TASK 5 [10%] Viva Class presentation & Demonstration of the designed database.

Anda mungkin juga menyukai