Presentation is loading. Please wait.

Presentation is loading. Please wait.

BUSI-3400 Tutorial #1 Sept 24, 2012 Tim Smith.

Similar presentations


Presentation on theme: "BUSI-3400 Tutorial #1 Sept 24, 2012 Tim Smith."— Presentation transcript:

1 BUSI-3400 Tutorial #1 Sept 24, 2012 Tim Smith

2 Chapter 1 – Problem 1 How many records does the file contain? How many fields are there per record?

3 Chapter 1 – Problem 1 How many records does the file contain? How many fields are there per record? 7 Records, and 5 Fields

4 Chapter 1 – Problem 2 2. What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure?

5 Chapter 1 – Problems 2 2. What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure? City names are containing within MANAGER_ADDRESS attribute Queries become much more difficult to write, and take longer to execute. If the ability to produce city listing is important, it is best to store city name in a separate attribute.

6 Chapter 1 – Problem 3 3. If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure?

7 Chapter 1 – Problem 3 3. If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code, how would you alter the file structure? The more we divide the attributes into components parts, the greater the information we can extract. Split MANAGER_ADDRESS into MGR_STREET, MGR_CITY, MGR_STATE, and MGR ZIP Split PROJECT_MANAGER into PM_LNAME, PM_FNAME, PM_INITIAL.

8 Chapter 1 – Problem 4 4. What data redundancies do you detect? How could those redundancies lead to anomalies? Holly B. Parker’s name, phone number, and address occur three times (she’s managing projects 21-5Z, 25-9T, 29-2D). The problem with this? If Ms. Parker changes address or phone number the change must be made in the database 3 times, or the data becomes incorrect. Also, we’re increasing the risk of a spelling/typing error corrupting our data.

9 Chapter 1 – Problem 4 4. What data redundancies do you detect? How could those redundancies lead to anomalies? Holly B. Parker’s name, phone number, and address occur three times (she’s managing projects 21-5Z, 25-9T, 29-2D). The problem with this? If Ms. Parker changes address or phone number the change must be made in the database 3 times, or the data becomes incorrect. Also, we’re increasing the risk of a spelling/typing error corrupting our data.

10 Chapter 1 – Problem 5 5. Identify and discuss the serious data redundancy problems exhibited by the file structure shown.

11 Chapter 1 – Problem 5 5. Identify and discuss the serious data redundancy problems exhibited by the file structure shown. JOB_CODE and JOB_CHG_HOUR are listed multiple times. What happens when we change the charges from $85 to $90? What happened when you want to delete an employee? The job billing information is lost. Notice that JOB_CODE CT has different billing rates.

12 Chapter 1 – Problem 5 5. Identify and discuss the serious data redundancy problems exhibited by the file structure shown. JOB_CODE and JOB_CHG_HOUR are listed multiple times. What happens when we change the charges from $85 to $90? What happened when you want to delete an employee? The job billing information is lost. Notice that JOB_CODE CT has different billing rates.

13 Chapter 1 – Problem 6 6. Looking at the EMP_NAME and EMP_PHONE, what change(s) would you recommend?

14 Chapter 1 – Problem 6 6. Looking at the EMP_NAME and EMP_PHONE, what change(s) would you recommend? Make data more atomic Split EMP_NAME into EMP_FNAME, EMP_LNAME, EMP_INITIAL Split EMP_PHONE into EMP_AREACODE, and EMP_PHONE.

15 Chapter 1 – Problem 7 7. Identify the various data sources in the file you examined in Problem 5.

16 Chapter 1 – Problem 7 7. Identify the various data sources in the file you examined in Problem 5. There would seem to be 4 key sources: EMPLOYEE data (phone number, name, employee ID) PROJECT data (project name, project number) JOB data (Job code, and hourly rate) CHARGE data (Project Hours)

17 Chapter 1 – Problem 8 8. Given your answer to Problem 7, what new files should you create to help eliminate the data redundancies found in the file shown in Figure P1.5?

18 Chapter 1 – Problem 8 8. Given your answer to Problem 7, what new files should you create to help eliminate the data redundancies found in the file shown in Figure P1.5? 4 files : EMPLOYEE file (phone number, name, employee ID) PROJECT file (project name, project number) JOB file (Job code, and hourly rate) CHARGE data (Project Num, Project Hours, Job Code)

19 Chapter 1 – Problem 9 9. Identify and discuss the serious data redundancy problems exhibited by the file structure shown.

20 Chapter 1 – Problem 9 9. Identify and discuss the serious data redundancy problems exhibited by the file structure shown. It seems to be trying to record room assignments, but it makes teacher information redundant. Note how Cordoza Maria has different initials?

21 Chapter 1 – Problem 10 10. Given the file structure shown in Figure P1.9, what problem(s) might you encounter if building KOM were deleted?

22 Chapter 1 – Problem 10 10. Given the file structure shown in Figure P1.9, what problem(s) might you encounter if building KOM were deleted? You’d lose time assignments for teachers and KOM rooms 204E, 123, and 34.


Download ppt "BUSI-3400 Tutorial #1 Sept 24, 2012 Tim Smith."

Similar presentations


Ads by Google