You are on page 1of 13

Activity 11.

2: Database Design Exercise using the ABC Case Study


Question 1) Entities for ABC Database 1.1 Customer Details

Customer No. Customer First Name Customer Middle Name Customer Surname Telephone No. Fax No. Mobile No. Home Address Office Address POBox Email Sales Header No. Payment Method Credit Limit Salesperson/Sales Clerk No. Sales Location Invoice Information/Address Sales Invoice Sales Delivery Schedule Discount 1.2 Salesperson Details

Salesperson No. Salesperson First Name Salesperson Middle Name

Page 1 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Salesperson Surname Salesperson Title Date of Joining Sales Quota Bonus/Incentives Sales Order Sales Location Telephone No. Fax No. Mobile No. Email 1.3 Sales Order Header Details

Sales Header No. Order Date Required Date Sales Delivery Schedule Item / Product No. Customer No. Payment Method 1.4 Sales Order Line Details

Sales Line No. Sales Header No. Item / Product No. Item / Product Price Quantity Discount

Page 2 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Total Payment Sales Invoice

1.5

Item / Product Details

Item / Product No. Item / Product Name Item / Product Description Item / Product Cost Item / Product Price Discount

Page 3 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Question 2) Details Definition (Each Table in the Database) 2.1 Customer Details Name Field Name Data Type Customer No. Customer First Name Customer Middle Name Customer Surname Telephone No. Fax No. Mobile No. Home Address Office Address POBox Email Sales Header No. Invoice Information/Address Payment Method CustomerNo FirstName MiddleName Surname Tel Fax Mobile HomeAddress OfficeAddress POBox Email SalesHeaderNo InvoiceInformation/Address PaymentMethod Number Text Text Text Number Number Number Text Text Number Text Number Text OLE Object: Cash NA Foreign Key NA Credit Limit Salesperson/Sales Clerk No. Sales Location CreditLimit Salesperson/SalesClerkNo SalesLocation Cheque Number Number OLE Object: RAK 10 10 2 Mandatory Mandatory Restricted List Field Size 8 50 50 50 9 9 10 100 100 5 100 10 100 2 Mandatory Mandatory Mandatory Mandatory; if no mobile number Mandatory Mandatory Mandatory; if no home address Mandatory Mandatory Mandatory Mandatory; if customer requests to send invoice of order Restricted List Validation Rules Primary/ Foreign Keys Primary Key NA NA NA NA NA NA NA NA NA NA Foreign Key NA NA

Page 4 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
UAQ Ajman Sharjah Fujairah Dubai AD NA NA NA Sales Invoice Sales Delivery Schedule Discount SalesInvoice SalesDeliverySchedule Discount Al Ain Number Date/Time Yes/No 8 10 1 Mandatory; if customer requests to send invoice of order Mandatory; dd/mm/yyyy Mandatory; purchase of every 10000 allot 2% discount

Page 5 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
2.2 Salesperson Details Name Salesperson No. Salesperson First Name Salesperson Middle Name Salesperson Surname Salesperson Title Date of Joining Sales Quota Bonus/Incentives Sales Order Sales Location Field Name SalespersonNo SalespersonFirstName SalespersonMiddleName SalespersonSurname SalespersonTitle DateofJoining SalesQuota Bonus/Incentives SalesOrder SalesLocation Data Type Number Text Text Text Text Date/Time Number Number Text OLE Object: RAK UAQ Ajman Sharjah Fujairah Dubai AD NA NA NA Telephone No. Fax No. Mobile No. TelephoneNo. FaxNo. MobileNo. Al Ain Number Number Number 9 9 10 Mandatory; office and Field Size 10 50 50 50 100 10 100000 5 100 2 Validation Rules Mandatory Mandatory Mandatory Mandatory Mandatory; dd/mm/yyyy Mandatory; >100000 Mandatory; >100000 Restricted List Primary/Foreign Keys Primary Key NA NA NA NA NA NA NA NA NA

home landline Mandatory; office facsimile Mandatory; business

Page 6 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
number number NA NA Email 1 Email 2 Email Email Text Text 100 100 in of personal absence of

business number Mandatory; office

email

address Optional; personal email address

2.3

Sales Order Header Details Name Sales Header No. Order Date Required Date Sales Delivery Schedule Item / Product No. Customer No. Payment Method Field Name SalesHeaderNo OrderDate RequiredDate SalesDeliverySchedule ProductNo CustomerNo PaymentMethod Data Type Number Date/Time Date/Time Date/Time Number Number OLE Object: Cash Cheque Field Size 12 10 10 10 12 8 2 Validation Rules Mandatory Mandatory; dd/mm/yyyy Mandatory; dd/mm/yyyy Mandatory; dd/mm/yyyy Mandatory Mandatory Restricted List

Primary/Foreign Keys Primary Key NA NA NA Foreign Key Foreign Key NA

2.4

Sales Order Line Details Name Field Name Data Field Validation Rules

Primary/Foreign

Page 7 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Keys Primary Key Foreign Key Foreign Key NA NA Sales Line No. Sales Header No. Item / Product No. Item / Product Price Quantity SalesLineNo SalesHeaderNo ProductNo ProductPrice Quantity Type Number Number Number Currency Number Size 12 12 12 10.4 to 999999999.9999 2 Mandatory Mandatory Mandatory Mandatory Mandatory;

more

than

99

should be separate order due NA NA NA Discount Total Payment Sales Invoice Discount TotalPayment SalesInvoice Yes/No Currency Number 1 10.4 to 999999999.9999 8 to shipment limitations Mandatory; purchase of every 10000 allot 2% discount Mandatory Mandatory; if customer requests to send invoice of order 2.5 Primary/ Foreign Keys Primary Key NA NA NA Item / Product No. Item / Product Name Item / Product Description Item / Product Cost ProductNo ProductName ProductDescription ProductCost Item / Product Details Name Field Name Data Type Number Text Text Currency 15 100 1000 10.4 Field Size Mandatory Mandatory Mandatory to Mandatory Validation Rules

Page 8 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
NA NA Item / Product Price Discount ProductPrice Discount Currency Yes/No 999999999.9999 10.4 999999999.9999 1 to Mandatory Mandatory; purchase of every 10000 allot 2% discount

Page 9 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Question 3) Planning for Failed Transactions There will be losses incurring during the event of transactions failure. Any BIS analysis and design should involve planning for recovery the loss and failure of data by keeping record of it that is retrieval with backup facilities. The planning and methods identification will be taking place in the design phase. Such methods and steps for recovering the failed transaction due to power failure, software bug or virus attack will allow minimizing and avoiding loss of data that might on financial and organization status and reputation. Question 4) Referential Integrity When there are similar contents, it will be affecting different sources causing violation of referential integrity. Therefore, the design of the database should be with identification of potential referential integrity problems and such detection will allow avoiding incompleteness or inconsistency. This is with all relationship that is in meaning and not null foreign key values. In cascading delete, it should be to avoid deletion of required and related child record when parent record deleted shown in figure 1. Therefore, the selection based on database design will be checking or unchecking it. On the other hand, it will be similar case for cascade updates. The impact will be on record when updating primary key in parent record will be updating and affecting all other record showing as foreign key.

Figure 1: Cascade in Edit Relationships

Page 10 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Question 5) Design to Safeguard Against Media, Power Failure or Hardware Safeguarding is necessary with backup strategy when there are cases and events of failure or disruption. This is to enable continuation of transactions rather than holding or delaying it due to disruption event. It is part of design decision to have multiple points of retrieving and restoring data of the day before when there is disruption. Therefore, when there is disruption, the backup strategy will enable and ensure restoring the data to continue transactions and working. This applies to backup power supply too (extra generators operating within 5 minutes of power failure) not just data because there is no point for restoring data when there is no power supply. The decision for backup strategy will be taking place after testing whether it will be working successfully using fault-tolerant server. It is to make sure that backup designed and planned should be dependable and reliable that will be definitely working. Such design basis will be including archiving frequency from particular data amount to another. Question 6) Replication Replication allows maintaining copy of fragment at various different sites such as storing of data for improving the availability of data accessible from different sites, which might be full or partial replication. Depending upon the amount of data, number of sites and location of sites such distribution of data and duplication done by database vendors at varying price and tasks. It is allowing user mobility for data sharing and communication, database recovery, analytic and transaction processing, etc. with potential multiple database vendors for handling and distributing it effectively.

Page 11 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study
Question 7) Database Sizing Capacity planning done is prior to installation of database where engineer will be checking the size of the database and capacity of their server to install it. The system will be affected if database installed is not tolerable and taking too much space by making it slow or down due to insufficient space. Question 8) Data Migration The planning takes place in design phase to migration occurring in build phase. The ineffective planning will result in poor data migration by missing important data sources. The assessment will be including assessing old system and new system for transfer of data. The adding of data to the database is populating the database. There will be need for careful planning for data migration before actually conducting it.

Page 12 of 13

Activity 11.2: Database Design Exercise using the ABC Case Study

Writing Services | SMS: 0508882487 | BB: 23AF01A8 |


Email: miss.projects@gmail.com | Website: http://missprojects.wordpress.com/ Project Samples: http://www.scribd.com/nshehhi

Page 13 of 13

You might also like