how would you alter the table structure? What data redundancies do you detect? Give example of how
Question:
- how would you alter the table structure?
- What data redundancies do you detect? Give example of how could those redundancies lead to data anomalies?
- How many records does the table contain? How many fields are there per record?
- 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?
- If you wanted to produce a listing of the file contents by last name, area code, city, state, or zip code,
P1.1
PROJECT_CODE
PROJECT_MANAGER
MANAGER_PHONE
MANAGER_ADDRESS
PROJECT_BID_PRICE
21-5Z
Holly B. Parker
904-338-3416
3334 Lee Rd., Gainesville, FL 37123
16833460.00
25-2D
Jane D. Grant
615-898-9909
218 Clark Blvd., Nashville, TN 36362
12500000.00
25-5A
George F. Dorts
615-227-1245
124 River Dr., Franklin, TN 29185
32512420.00
25-9T
Holly B. Parker
904-338-3416
3334 Lee Rd., Gainesville, FL 37123
21563234.00
27-4Q
George F. Dorts
615-227-1245
124 River Dr., Franklin, TN 29185
10314545.00
29-2D
Holly B. Parker
904-338-3416
3334 Lee Rd., Gainesville, FL 37123
25559999.00
31-7P
William K. Moor
904-445-2719
216 Morton Rd., Stetson, FL 30155
56850000.00
Figure P1.5.
P1.5 | |||||||
PROJ_NUM | PROJ_NAME | EMP_NUM | EMP_NAME | JOB_CODE | JOB_CHG_HOUR | PROJ_HOURS | EMP_PHONE |
1 | Hurricane | 101 | John D. Newson | EE | 85.00 | 13.3 | 653-234-3245 |
1 | Hurricane | 105 | David F. Schwann | CT | 60.00 | 16.2 | 653-234-1123 |
1 | Hurricane | 110 | Anne R. Ramoras | CT | 60.00 | 14.3 | 615-233-5568 |
2 | Coast | 101 | John D. Newson | EE | 85.00 | 19.8 | 653-234-3254 |
2 | Coast | 108 | June H. Sattlemeir | EE | 85.00 | 17.5 | 905-554-7812 |
3 | Satellite | 110 | Anne R. Ramoras | CT | 62.00 | 11.6 | 615-233-5568 |
3 | Satellite | 105 | David F. Schwann | CT | 26.00 | 23.4 | 653-234-1123 |
3 | Satelite | 123 | Mary D. Chen | EE | 85.00 | 19.1 | 615-233-5432 |
3 | Satellite | 112 | Allecia R. Smith | BE | 85.00 | 20.7 | 615-678-6879 |
- Identify and discuss the serious data redundancy problems exhibited by the table structure shown in Figure P1.5.
- Looking at the EMP_NAME and EMP_PHONE contents in Figure P1.5, what change(s) would you recommend?
- Identify the various data sources in the table you examined in Problem 6.
- Given your answer to Problem 7, what new tables should you create to help eliminate the data redundancies found in the table shown in Figure P1.5?
Figure P1.9.
P1.9 | |||||
BUILDING_CODE | ROOM_CODE | TEACHER_LNAME | TEACHER_FNAME | TEACHER_INITIAL | DAYS_TIME |
KOM | 204E | Williston | Horace | G | MWF 8:00-8:50 |
KOM | 123 | Cordoza | Maria | L | MWF 8:00-8:50 |
LDB | 504 | Patroski | Donald | J | TTh 1:00-2:15 |
KOM | 34 | Hawkins | Anne | W | MWF 10:00-10:50 |
JKP | 225B | Risell | James | TTh 9:00-10:15 | |
LDB | 301 | Robertson | Jeanette | P | TTh 9:00-10:15 |
KOM | 204E | Cordoza | Maria | I | MWF 9:00-9:50 |
LDB | 504 | Williston | Horace | G | TTh 1:00-2:15 |
KOM | 34 | Cordoza | Maria | L | MWF 11:00-11:50 |
LDB | 504 | Patroski | Donald | J | MWF 2:00-2:50 |
- Identify and discuss the serious data redundancy problems exhibited by the table structure shown in Figure P1.9. (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—two different initials have been entered for the teacher named Maria Cordoza.)
- Given the table structure shown in Figure P1.9, what problem(s) might you encounter if building KOM were deleted?
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris