Question: 1 . How many records does the above file contain? How many fields are there per record? Ans ) As per the file above we

1. How many records does the above file contain? How many fields are there per record?
Ans) As per the file above we have seven records as they are from 21-5Z to 31-7P. There are
5 fields in the above file and they are; PROJECT_CODE, PROJECT_MANAGER,
MANAGER_PHONE, MANAGER_ADDRESS, PROJECT_BID_PRICE.
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?
Ans) If we list by city the problem we encounter is having common identifier to link the
records. To help solve the problem is to Add a separate field for "CITY": This would
allow you to easily query and sort data by city without parsing the address field
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?
Ans) Similar to the city issue, to easily list by any of these criteria, you'd need to add separate
fields for each:
A) LAST_NAME: Extract the last name from the "PROJECT_MANAGER" field.
B) AREA_CODE: Extract the area code from the "MANAGER_PHONE" field.
C) STATE: Extract the state from the "MANAGER_ADDRESS" field.
D) ZIP_CODE: Extract the ZIP code from the "MANAGER_ADDRESS" field.
4. What data redundancies do you detect? How could those redundancies lead to
anomalies?
Ans) There's redundancy in the "MANAGER_ADDRESS" field, as it includes city, state, and
ZIP code information already captured in separate fields. This redundancy could lead to
anomalies if:
A) The city, state, or ZIP code in the address field doesn't match the corresponding dedicated
fields. For example, if the address has "Gainesville, FL" but the city field is "Nashville,
TN", that's an inconsistency.
B) The address field is updated, but the corresponding individual fields (city, state, ZIP
code) aren't updated simultaneously, creating discrepancies.
5. Identify the attributes in Figure P1.1. What would you name this table(the name of the
entity)?
Ans)
A) The attributes are:
1) PROJECT_CODE
2) PROJECT_MANAGER
3) MANAGER_PHONE
4) MANAGER_ADDRESS
5) CITY (proposed addition)
6) STATE (proposed addition)
7) ZIP_CODE (proposed addition)
8) LAST_NAME (proposed addition)
9) AREA_CODE (proposed addition)
10) PROJECT_BID_PRICE
B) I would name this table as MANAGER_INFO
FIGURE P1.5 The File Structure for Problems 6-7
6. Identify and discuss the serious data redundancy problems exhibited by the file structure
shown in Figure P1.5.
Ans)1. The data redundancy problems exhibited by the file are:
1. The TEACHER_INITIAL column holds two different initials for the teacher, Maria
Cordoza, which are I and L.
This would lead to inconsistency and inaccuracy of data regarding the identification of
the teacher Maria Cordoza. Both the initials would retrieve only partial and incomplete
details of her classes.
2. The DAYS_TIME column holds two classes, one with Horace Willingston and the other
with Maria Cordoza, on the same days and timings MWF 8:00-8:50.
3. This would lead to inconsistency of data regarding the lecture on MWF 8:00-8:50.
7. Given the file structure shown in Figure P1.5, what problem(s) might you encounter if building
KOM were deleted?
Ans) Deletion of building KOM would lead to the below-mentioned consequences:
1. Details of the teacher Maria Cordoza would be deleted from the database.
2. Details of classes on MWF would be deleted from the database.
3. This would lead to a lack of data integrity in the database as the data would no longer be
accurate and consistent with the real-life scenario.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!