* Activity 1 – Entity/Definition Matrix
he entities in the following matrix were identified by analyzing the forms provided in Milestone 4. This list and the following diagrams are based on the author’s assumptions and interpretations. If you, the instructor, choose to do your own solution, it may be different, depending on your interpretation of the forms provided. In most activities explanations for why things were done as they were have been provided to aid in your understanding of the solution.
The following tables contain the attributes identified from each form and the interview.
PC Configuration Sheet & Interview:
Software Configuration Sheet & Interview:
Client (i.e. Family Vacation Rentals)
Machine Name (i.e. SQL Server)
Type of Information (i.e. Logon)
Multiple Values of Information (i.e. Username: sa / Password: gumb@ll)
Students should be able to identify at least the major entities listed below. Whether or not they identify the optional entities will depend on how they interpret the user requirements and on their experience level with database normalization. The following completed matrix is one possible solution.
A business entity for whom work is done.
A computer, printer, or other piece of technology equipment that is in use.
A component (anything from a stick of RAM to an entire turn-key system) that is or has been installed in Equipment.
A component that has been checked into inventory
A piece of information concerning software configuration for the Client and possibly for a piece of equipment.
A request for service on Equipment.
Work done to resolve a SeviceRequest.
A classification of Equipment.
A classification of EquipmentComponent.
Activity 2 – Context Data Model
his model should be constructed based on the entities identified in Activity 1. All of the cardinalities of the major entities can be determined from the interview or the forms.
The following diagram is based on the following assumptions and/or business rules:
* A piece of Equipment is made up of one or more EquipmentComponents that either have in the past or are now installed.
* Each piece of Equipment is a particular EquipmentType.
* Each piece of Equipment is owned by a particular Client.
* Each EquipmentComponent is a particular ComponentType.
* Each Configuration is associated with a particular Client. Some, but not all, of the configuration records could be associated with a piece of Equipment. Because this does not apply to all records, a formal relationship would not have to be established.
* A Client submits one or more ServiceRequests, which may related to a piece of Equipment.
* Each ServiceRequest will be worked on with zero or more WorkRecords (initially zero but eventually at least one).
Activity 3 – Key-Based Data Model
his model is constructed by adding the primary keys to the model in Activity 2. The primary keys are based on how the user uniquely identifies each entity. Make sure students specify primary keys that uniquely identify the entities as well as use proper names for the keys. The following diagram illustrates one possible solution.
* This diagram was created in Microsoft Visio. Primary keys are shown at the top of the list of attributes and marked with PK. Foreign keys are marked with FK and a number.
* The Equipment entity has EquipNum as the primary key. In the present system, the computer name acts as a primary identifier. This could be the primary key. However, Jeff Summers states that the computer name is sometimes changed. Primary keys cannot be changed in some systems, and it is never good practice. An EquipNum is a number that could be generated by the system and stays unchanged forever. As a number it would also consume less disk space as a foreign key in related tables and would provide for faster joins.
* The EquipmentComponent entity has ComponentNum as the primary key. This would also be a system-generated number.
* None of the forms hint at a ClientID. But a long text field such as the client name would make a poor primary key for Client, consuming extra storage space, slowing down database operations, and probably requiring extra typing. A numeric ClientID serves better.
* While a combination of ClientID and RequestDate might work as primary key for ServiceRequest, a better solution is ReqNum, which would be a system-generated number.
* BarCode is the primary key for both EquipmentComponent and Inventory. This makes a one-to-one relationship. These two entities could be combined into one entity, but with their different uses, a case can be made for have two entities.
Activity 4 – Fully Attributed Data Model
his model should be constructed by adding non-key attributes to the entities in Activity 3. Since students’ models are not necessarily normalized, attributes could be placed in various entities. But make sure each non-key attribute exists in only one entity. Students may also include other attributes based on their interpretations of the users’ needs.
The diagram below includes foreign keys, assuming implementation in a relational database. Subject to interpretation, this diagram is in third normal form, which is the bulk of the assignment for Milestone 5. If you will be doing Milestone 5 as a separate assignment, you may want to withhold this solution. An attractive alternative is to have students analyze and critique each other’s Fully Attributed Data Models in small groups to refine the normalization. Another alternative is to start with this data model for Milestone 5 but add additional requirements, such as the Milestone 4 Advanced Option and require that students revise the data model accordingly.
* Advanced Option – Revised Attributed Data Model
If the system must also track purchase orders for buying software components from vendors, you would most likely need to add the following entities: Vendor, PurchaseOrder, PurchaseOrderDetail. Vendor would be a parent table to PurchaseOrder, contributing the VendorID in a non-identifying relationship. PurchaseOrder would be a parent table to PurchaseOrderDetail, contributing its OrderID in an identifying relationship. Students should realize that the Parent-Child relationship found in PurchaseOrder and PurchaseOrderDetail will be present in any invoicing system and many other systems as well.
The real problem with adding purchase orders to CTTS is that it opens the door on accounting functions. Where do you stop? Would you also have payments? Would you track accounts payable?
SADM 7/ed – CTTS CASE STUDY – Milestone 4: Solution Page: 4-1