Sunteți pe pagina 1din 5

7.

214 Database Analysis, Design and Implementation Semester 2, 2010 Assignment 01

Semester 2, 2010 - Week 2 Exercise Sheet


TABLE 1

1. How many records does the table contain? How many fields are there per record? 2. What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the table structure? 3. If you wanted to produce a listing of the table contents by last name, area code, city, state, or zip code, how would you alter the table structure? 4. What data redundancies do you detect? How could those redundancies lead to anomalies? 5. Identify and discuss the serious data redundancy problems exhibited by the table shown in Table 2
TABLE 2

AIS, St Helens David Nandigam

6. Looking at the EMP_NAME and EMP_PHONE contents in Table 2, what

change(s) would you recommend?


7. What new tables should you create to help eliminate the data

redundancies found in Table 2?

8. Identify and discuss the serious data redundancy problems exhibited by

the file structure shown in Table 3. (The table is meant to be used as a teacher class assignment schedule. One of the many problems with data redundancy is the likely occurrence of data inconsistencies that two different initials have been entered for the teacher named Maria Cordoza.)
TABLE 3

9. Given the file structure shown in Table 3, what problem(s) might you encounter if building KOM were deleted?

Semester 2, 2010 - Week 3 Exercise Sheet Exercise 1


a. Each company branch may have many vans. A van must be owned by only one branch b. A vineyard must produce at least one wine label. Each wine label must belong to one vineyard c. A student enrolls in many classes. Each class may have many students d. A computer may require many services. The service may be required by many computers

AIS, St Helens David Nandigam

Exercise 2

a. A vendors invoice has at least one line item. The line item must belong to only one invoice. A line item will be for one part. Each part may be involved in many invoice line items b. A part may be supplied by many vendors. Each vendor may supply many parts c. Each part is composed of one or more parts. A part may be used by many products d. Combine the entity models for Questions 1, 2, & 3 into one model

Semester 2, 2010 - Week 6 Exercise Sheet


HILLTOP ANIMAL HOSPITAL INVOICE # 987 MR. RICHARD COOK 123 THIS STREET MY CITY, ONTARIO Z5Z 6G6 PET ROVER MORRIS PROCEDURE RABIES VACCINATION RABIES VACCINATION AMOUNT 30.00 24.00 DATE: JAN 13/2002

TOTAL TAX (8%) AMOUNT OWING

54.00 4.32 58.32

1NF: 2NF: 3NF:

AIS, St Helens David Nandigam

Semester 2, 2010 - Week 8 Exercise Sheet


ABC MANUFACTURING: CUSTOMER ORDER AND PRODUCT APPLICATION

The ABC Manufacturing company has a completely automated application system. The system, however, resides on index files and does not allow for decision support at all. In order to move to ad hoc queries, and "what if" queries, the company has decided to convert the existing system to a database. Initially, the only criterion for the application is to replace the existing system with a database system. No ad hoc screen or reports have been anticipated. You will see the reports and screens that exist currently. Use this case to perform the task that the module has asked of you.
a. Normalise in 3NF 1NF: 2NF: 3NF: b. Present the ERD in MSVisio c. Implement using Create Table... statements d. Insert the data using Insert into... statements

AIS, St Helens David Nandigam

Marking Schedule

1. Week 2
1.1. 1.2. 1.3. 1.4. 1.5. 1.6. 1.7. 1.8. 1.9. Question 1 Question Question Question Question Question Question Question Question 2 3 4 5 6 7 8 9

Marks 5 5 5 5 5 5 5 5 5

2. Week 3
1.1. a) b) c) d) 1.2. a) b) c) d) 3. Table 1 Question 1 Question 2 Question 3 Question 4 Table 2 Question 1 Question 2 Question 3 Question 4 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5

Week 6 (Ex.3)
a) b) c) Question 2 Question 3 Question 4 5 5 5

4. Week 8
a. Normalised in 3NF b. ERD presented in MSVisio c. Implemented using Create Table... statements d. Inserted the data using Insert into... statements 5 5

AIS, St Helens David Nandigam

S-ar putea să vă placă și